DOCUMENTATION: Project GreatFit
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
IntroductionThis project scopes to provide an easy way to create Amazfit APK watchfaces even without coding skills!
On the other hand, the provided code is clear (still working on this ), contains many comments and is at "the state of the art" when it comes to Amazfit APK watchfaces development.
This code refers to both designers and programmers so feel free to skip the parts about developers.
THIS TUTORIAL IS DEPRECATED WITH THE NEW SOURCES. Most parameters are now gathered in one file: GreatFit\app\src\main\res\values\arrays.xml, read that file, it's quite easy to make changes now. I haven't been able to update the tutorial since I improve GreatFit and its connection with Amazmod.
FeaturesWhy to use these APK watchface sources and not an *.wfz file or other sources? Because:
Customize hours and minutes separate
Display custom battery/steps/daily steps progress bars
Display custom battery/weather icons
Display date/month/day separate
Display more weather info (humidity, wind direction and strength, UV status, city)
Display next watch alarm
Display air pressure
Show/hide units (for calories, distance, temperature)
Easy to enable/disable elements
Easy to position elements in the screen (same positions for screen on and off modes!)
Easy to set element colors
Preparation:
With or without coding skills, you will have to download and install Android Studio in order to compile the java sources to an APK.
Additionally, you will need to download the sources from here.
Project's Structure:Run Android studio, click file->open and select the sources folder. In Studio's left column you will now see project's structure.
View attachment 4559933
You only have to edit 3 things to make a watchface:
Watchface's parameters (elements' positions in the screen and other features)
Images
Fonts
For developers
To start with, you can add more watchfaces in the same APK by editing the manifest and creating 2 new java classes identical to GreatFit and GreatFitSltp.
Within each of these classes you will be able to load each watchface's widgets. There are currently 8 widgets:
- MainClock, where all the time and date elements are handled
- Circle widget, where battery (as number), calories, steps and distance elements alongside with the progress circles/bars are handled.
- Heart rate widget
- Battery widget, that handles the battery images
- Floor widget
- Weather widget, where the weather magic happens
- Great widget, where I try to make new elements work (like am/pm, next alarm and Xdrip)
Watchface's parameters:There are 5 files containing watchface's parameters inside "app\src\main\res\values":
bool.xml (Show/hide: elements, units, progressbars, icons & set the text aligment center or left for each element)
colors.xml (Show/hide: elements, units, progressbars, icons & set the text aligment center or left for each element)
dimens.xml (Change elements' positions in the screen and their font size)
integer.xml (Change progressbars angles and their screen off color, and define the font_ratio)
strings.xml (Change watchface name & style author)
bool.xml:
You can show or hide an element by turning the value to "true" or "false". Additionally you can enable or disable the "flashing_indicator" (the : between hours and minutes) or the "flashing_heart_rate_icon" which will show or hide the "flashing_heart.png" image every second.
Examle, turn seconds off:
Code:
//The original line with the seconds is:
<bool name="seconds">false</bool>
//And seconds are shown by turning the false to true
<bool name="seconds">true</bool>
Additionally with enabling or disabling element, in this file you would set text alignment for each element. Currently, only left and center alignmet types are supported.
Examle, detting steps' alignment:
Code:
//To align the text left:
<bool name="steps_left_align">true</bool>
//To align the text in the center:
<bool name="steps_left_align">false</bool>
colors.xml:
- Under construction
dimens.xml:
- Under construction
integer.xml:
- Under construction
strings.xml:
- Under construction
Fonts:All the used fonts are located in "app\src\main\assets\fonts" folder. Currently you are unable to use more than one font without changing the java code. To change the font, just replace the "font.ttf" file with your font (keep the same name, both .OTR and .TTF files will work).
Causion: If you change the font, you will have to change the "font_ratio" parameter inside the "app\src\main\res\values\integer.xml" file. This parameter shows the position of font's vertical center (from the top in percent of its height). We need this value in order to calculate the same positions for both screen on and off modes (don't ask why ).
Sooo... we need "y" in terms of height%. To calculate it you can just see if the texts moves between screen on/off. Raise or decrease "font_ratio" until you find the perfect spot
If you want to know more about this...
When screen is on, vertical positions are based on the vertical center of the font. On the other hand, when screen is off, texts are like images thus the positions are based on the top left corner of the font. However, i have found a way to calculate horizontal and vertical centers. For more take a look at each widget's slpt code...
For developers
To add more fonts in your code, edit the "app\src\main\java\com\dinodevs\greatfitwatchface\resource\ResourceManager.java" file. Then you have to change these code for every element you whant to change to a second font:
Code:
//Screen on: in the init function, Screen off: in the buildSlptViewComponent function
ResourceManager.getTypeFace(service.getResources(), ResourceManager.Font.FONT_FILE)
Images:When screen is on:
All "screen on" images are gathered in the "res" folder (this is the default images directory on android projects). These images can be in any rgb color.
When screen is off (slpt mode):
On the other hand, all "screen off" images are gathered in the "assets" folder. These images must have a specific color pallete consist of 8 colors:
#ffffff
#ffff00
#ff00ff
#ff0000
#00ffff
#00ff00
#0000ff
#000000
Here is the pallete i use in gimp: View attachment amazfit_palette.zip (css exported pallete, unzip it and import it).
If you don't convert the screen off images in this pallete, at best the image would be converted automatically or they will not show up at all.
I will explain all the images included in this project in the next update. To be continued...
Awesome job, man! Very well documented too, thanks a lot!
I am waiting for daily distance based on steps (like in Mi Fit). I would like to see this function
Awesome...i was waiting for this..thanks man..
jugglerpl said:
I am waiting for daily distance based on steps
Click to expand...
Click to collapse
I suppose this will require you to input your height in order to be more precise... Maybe I can search for an average value for now
i was waiting for this..thanks
What changes did u make in the .jar lib?
Hi,
As I am new to this. Please help me to find out the changes that u made in the .jar file to make it work. I also want to know that how u narrowed down these changes in the .jar file.
Thansk,
Vivek
Nice tutorial(for your first one) .
How do I change the hour digit size;
Is it easy to add more widgets?
In the OP photo i can see at least 3 more widgets
vivek3507 said:
Hi,
As I am new to this. Please help me to find out the changes that u made in the .jar file to make it work. I also want to know that how u narrowed down these changes in the .jar file.
Click to expand...
Click to collapse
Smali editing is not so easy. If you use an older jar file you don't need to make any changes in it.
vd69 said:
Nice tutorial(for your first one) .
How do I change the hour digit size;
Is it easy to add more widgets?
In the OP photo i can see at least 3 more widgets
Click to expand...
Click to collapse
This tutorial is deprecated with the newer sources. Most parameters are now gathered in one file: GreatFit\app\src\main\res\values\arrays.xml
Read that file, it is quite easy to change things now
GreatApo said:
Smali editing is not so easy. If you use an older jar file you don't need to make any changes in it.
This tutorial is deprecated with the newer sources. Most parameters are now gathered in one file: GreatFit\app\src\main\res\values\arrays.xml
Read that file, it is quite easy to change things now
Click to expand...
Click to collapse
I made some changes concernig hour digit size and widget font sizes .Then i pressed build apk and tryed to install it after unnistalling previous version with huami tool (like i do with every version of Greatfit.apk) .Every time the result was failure .
vd69 said:
I made some changes concernig hour digit size and widget font sizes .Then i pressed build apk and tryed to install it after unnistalling previous version with huami tool (like i do with every version of Greatfit.apk) .Every time the result was failure .
Click to expand...
Click to collapse
Unfortunately you have to uninstall with ADB. For some reason various programs do not completely install the apps.
GreatApo said:
Unfortunately you have to uninstall with ADB. For some reason various programs do not completely install the apps.
Click to expand...
Click to collapse
I did it.Thank you so much
Is there a way to see virtually the changes in android studio before applying it
vd69 said:
Is there a way to see virtually the changes in android studio before applying it
Click to expand...
Click to collapse
Unfortunately no. The only thing you can do is setup a layout with the parameters but I have never done it.
Just install it from ADB directly, the watchface will just refresh,l. Next time, just press the up arrow in console and Enter...
GreatApo said:
Unfortunately no. The only thing you can do is setup a layout with the parameters but I have never done it.
Just install it from ADB directly, the watchface will just refresh,l. Next time, just press the up arrow in console and Enter...
Click to expand...
Click to collapse
Thanks
In arrays where the widgets are is written "add a widget here and in widget list". Widget list its before the widgets.? If so, what are the numbers written in every widget 2,12 and so on?
vd69 said:
In arrays where the widgets are is written "add a widget here and in widget list". Widget list its before the widgets.? If so, what are the numbers written in every widget 2,12 and so on?
Click to expand...
Click to collapse
Just copy the previous widget (ex. widget 5) and paste it directly under it. Then add one more element in the "widgets" array (the numbers you are saying). Those numbers are the order number of the default widget you place there (calories, steps etc). You can see them in the "supported widgets" array.
So, lets say you want to add one more widget, which by default floor is selected. You copy the 5th widget, you paste it under 5th, rename it to 6th ("widget6"), change the positions etc. Then you have to add it in the widgets array, make a new item under "<item>22</item>" and input floors' order number which is 6.
Let me know if you got it
GreatApo said:
Just copy the previous widget (ex. widget 5) and paste it directly under it. Then add one more element in the "widgets" array (the numbers you are saying). Those numbers are the order number of the default widget you place there (calories, steps etc). You can see them in the "supported widgets" array.
So, lets say you want to add one more widget, which by default floor is selected. You copy the 5th widget, you paste it under 5th, rename it to 6th ("widget6"), change the positions etc. Then you have to add it in the widgets array, make a new item under "22" and input floors' order number which is 6.
Let me know if you got it
Click to expand...
Click to collapse
Thanks. I will try when I return from work tonight or tomorrow morning. If I put 0 or 25 is by default none?
vd69 said:
Thanks. I will try when I return from work tonight or tomorrow morning. If I put 0 or 25 is by default none?
Click to expand...
Click to collapse
0 is the first widget type (I think it is steps or calories, because array index starts from 0), 25 is the none if I remember correctly.
GreatApo said:
0 is the first widget type (I think it is steps or calories, because array index starts from 0), 25 is the none if I remember correctly.
Click to expand...
Click to collapse
OK i think I got it. Ευχαριστώ. I don't want to be annoying and I know you are a busy man,did you have time to look about the fishing widget?
Related
The Japan brothers are again coming up with a great app called JtdLnch ! Its available here:
http://nullmo.blog89.fc2.com/
Current version is 1.10, the application has damn good interface and it was only available in Japanese BUT finally its now translated in English !!!
check the demo video here: http://www.youtube.com/watch?v=5GV-TBEDArU
For complete detailed desctiption please visit the FreewarePocketPC.net page
Here is a simple Page.ini file
Code:
[win]
S_HEX2
S_HEX2
1,iGO8,\Storage Card\iGO8\iGO8.exe,,
1,maps,\Storage Card\Program Files\GoogleMaps\GoogleMaps.exe,,
1,WiFi,\Program Files\AKToggleWifiCab\AKToggleWifi.exe,,
1,Showcase,\Program Files\e-Natives Technology\Showcase\Showcase.exe,,
1,BT,\BTOnOff.exe,,
1,Screen,\Program Files\Spb Screenshot\SpbScreenshot.exe,,
Install the .cab file, then run and exit the JtdLnchSet app from your Programs menu. Go to File explorer and find the JtdLnch installation folder, then edit the Page.ini file !
When enabled in your Today screen, it wont be shows until you click on it !
Enjoy.
-----------------------------------------------------------------------------------------------
Translation and settings guide thanks to PocketNow.com:
Tab 1 (Pages):
This is the foundation of the launcher. Before adjusting anything else, you will want to create a new page. To achieve this, simply enter a title for the new page on the first line of this tab. Then, select the preferred launcher pattern. The left box is the pattern set for portrait mode, the right is for landscape. Experiment with a few until you find one you like (previews can be viewed on dev’s site). Next, click “add” and you’ll see the entry displayed in the bottom window. If you decide to change the pattern later, be sure to click edit after making the changes or they may not take.
Tab 2 (Apps):
This is where you’ll be adding the shortcuts for each page of the launcher. Select one of your pages from the drop down menu and click “add.” For some reason, the app doesn’t seem to be very efficient in auto-searching for files or shortcuts (first two choices), so I recommend adding the file path manually. First, enter the text that you want displayed for a particular shortcut and then type in the path to that program on the line labeled “PATH.”
For example, I added Opera Mobile 9.7 by entering “\Program Files\Opera Mobile\OperaL.exe”
You’re not just restricted to program shortcuts using the manual entry method. You can also add shortcuts to other file types like images. If you don’t enjoy tapping the bottom left/right corners of the launcher to switch pages, you can add shortcuts to other pages by choosing the second to last choice from the drop down menu (during the add app process). Blank placeholders can be added by using the last option in the drop down menu, which can be used to customize the pattern of the launcher. If anyone’s able to figure out a friendlier way of using the automated method, let us know in the comments.
Tab 3 (Themes):
This tab doesn’t appear to be in use at the moment, but will probably be used in the future to quickly change themes of the launcher.
Tab 4 (General Settings):
This tab has the most Japanese characters (or blocks), so I edited a screen shot of it with English translations. View it at the end of this post.
Tab 5 (Plug-in Height):
Adjust the height of the actual plug-in here. The option at the bottom adjusts the height of the page switch area.
Tab 6 (Plug-in Width):
Likewise, you can adjust the width of the plug-in here.
Tab 7 (Colors):
Here you can change different colors associated with the launcher. The first choice is for changing the frame color, the second is for the font and the last one is to adjust the launcher’s transparency.
read the whole guide on PocketNow.com http://pocketnow.com/software-1/sweet-animated-today-screen-program-launcher
------------------------------------------------------------------------------------------------
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Here is a translated version of the options windows
Looks interesting. thanks for the info.
I guess it cannot work together with the TF3D?
looks interesting, can spb do that?
the animation look good but it is a today plugin only
thanks for your info
I'm a fan of the today screen. This is a cool app, ありがとう.
interesting plugin
Settings program is great even if I have to set in blind mode (lol )
Is it possible to change the background for the items ?
do you have a plugin to display Photos ?
EDIT : I've seen there Pages , How can I switch between diferents Pages ? , I have only the first one displayed
Found how to switch between page and how to change background icons
is it working on qvga ?
brunoisa10 said:
Found how to switch between page and how to change background icons
is it working on qvga ?
Click to expand...
Click to collapse
Good idea for your rltoday theme ..... but i doubt it will work with other UI....well i'llgive it a try and let you know....
brunoisa10 said:
Found how to switch between page and how to change background icons
is it working on qvga ?
Click to expand...
Click to collapse
please share your findings
for background item it is the S_HEX2 to change (Tab1 of settings)
i'll make a video this evening
a chinese guy has told me he can help
about switching between page : just tick on the the right of the screen
yep, there are couple of background motion types, in Tab1
you can setup multiple pages, which could be changed as you said by taping/sliding at right
the pages can be edited at Tab2
tab3 - dont know what it ist
tab4 - sizes and fonts, but its not very clear what is what
tab5 - not clear yet
tab6 - not clerar yet
tab7 - change the color gradients with color picker
tab8 - credits
Big thanks to Junturo !
infact he is Japanese i think.
tab3 : if you untick the first square on the left you don't see text under the items
check all others doesn't seen difference
Tab1 : the two values (S_HEX2 and so on...)
Sheet 1 is for Portrait Background
Sheet 2 is for Landscape Background
very cool program. thanks for sharing!!
Can anyone mail him and ask for english version?
I don't understand japanese.
translation is in progress
all is not finished , I have to ask more
take a look here
see 2 post after ..... (I had posted a bad link)
I'm testing till two days and probably a little video soon
brunoisa10 said:
translation is in progress
all is not finished , I have to ask more
take a look here
http://pocketnow.com/software-1/swee...ogram-launcher
I'm testing till two days and probably a little video soon
Click to expand...
Click to collapse
Cool b.t.w link goes nowhere
sorry my bad
try this one http://pocketnow.com/software-1/sweet-animated-today-screen-program-launcher
been trying to read the 4th tab, this might help until an english version arrives
screen width, screen width base ( left one = half right one works for me..)
refresh rate, double speed setting (25 and 2.0 looks smooth on my polaris)
show which page upon screen tap
font, size and shadow depth
task management dropdown
tap = menu
tap = switch, hold = menu
tap = switch, hold = close
show app name, use left right key
vibrate upon tap, show redraw rate
i believe 5th and 6th tab says....
screen height
page switch area width ????
... for portrait and landscape modes respectively
7th tab
form
font
alpha (100=invisible)
awesome little program, could get to like playing with this : )
Be sure to check out the new app they made. jTSKLnch ... same core as TDlnch but runs as a standalone app. Its more usefull I think because you can have screens with 10+ icons and they will unfold over the exiting today screen or whatever app you are in.
I mapped it to the start button so it launches quickly from anywhere.
-T
hows the translation going?
CHT Tweaks BETA
Only for Co0kie Home Tab 2.0.0
CHANGE FONT TEXT DIRECTLY TO CHT.2.0.0
USE PNG FILES DIRECTLY TO CHT.2.0.0
new! PIE CONTROL FOR SENSE
new!ONE CLICK TO HIDE THE TASKBAR
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
pie control here & into v100beta
I continue experimenting with Co0kie Home Tab 2.0.0. Mainly CHTtweaks allow to change textures in .png format using the file explorer and give the option to easily change the text font for all CHT elements independently. Aditionally CHTtweaks uses great tool JMLMenuSense to make a setting menu.
CHTtweaks brings major changes as the original files of CHT.2.0.0 lua & mode9 are modified. I am also providing the open source where the changes are marked (--CHTtweaks) in the files as explanation. Feel free to use, modify, edit, mirror, sale, delete or whatever you want to do with this, but always with fun
For security also I am providing the original CHT files to restore if necessary. Just copy all files from insode the zip to windows folder, acept overwrite & restart Sense.
The files with changes are the followings:
5950B2CD_manila -- Co0kieNotifyBar.lua ==> added a 3rd layout for text missed calls - sms - emails - voicemail notification, Configurable: text font, size, color, alignment, language, displayed text
5fa4d4b7_manila -- homedigitalclock.lua ==> chose png texture for numbers, colon & background; switch for transparent flipclock-tabs; switch for get out of the midle flipclock line.
4B558519_manila -- CHT_Widgets.lua ==> selectable opacity for home clock background; added 4th layout to textclock: alarm icon only; added 3rd layout text notifications
1EC5924B_manila -- homeAnalogClock.lua ==> chose png texture for analog clock face, hourhand, minutehand & secondshand
new!2AFAFEFA_manila -- CHT_Softkeys.lua ==> chose png texture for the softkeys background; switch for transparent softkeys & softkeys background; switch to dissable the enlargement softkey icon when pressed, work done by devil-strike based on the script of rat_2665 (all credits for them please). Extended CHT menu. Hide taskbar new!
29C5E347_manila -- Co0kieEmail.lua ==> chose png texture for CHT email background independently of Email Sense Tab; change text font
7ECB5997_manila -- Co0kieMessages.lua ==> chose png texture for CHT SMS background; change text font
4956014B_manila -- CHT_Lockscreen.lua ==> chose png texture for the slider unlocker of each CHT lockscreen (Manila, Windows, Mini HD)
6A5D6A2D_manila -- Co0kieMusicPlayer.lua ==> switch transparent CHT music player background; change text font; change background
45E83959_manila -- CHT_Titlebar.lua ==> switch transparent home title bar; set color for other Sense Tab titles (excepting Music Sense Tab & Internet Sense Tab); change text font; switch page indicators to botton screen
5146EC01_manila -- Co0kieAppointments.lua, 45D3F17C_manila -- Co0kieListControl.lua & 094C0231_manila -- Co0kieAppointments.mode9==> switch transparent background for CHT appointment, horizontal alignment & change text font
3ACCF880_manila -- CHT_QuickLinks.lua==> change text font for quicklinks labels; change quiklinks frames
58B6C4C5_manila -- CHT_FreeLinks.lua==> change text font for freelinks labels; change freelinks frames
346BA8F0_manila -- Co0kieTextClock.lua==> change text font for the clock, date & alarm bar widget
6639bcc4_manila -- weatherforhome.lua==> change text font for weather info for home.
6DB6511F_manila -- CHT_Constants.lua==> dock size up to 120px
new! 285d005a_manila -- manila.lua & 3a8e04af_manila -- manila.mode9==> pie control in all sense tabs
CHTtweaks does also add some settings that use to be done in CHTEditor, now you can also do it in CHTtweaks, like disable double flip or minute flip; show seconds hand; set softkey height & menu height; set color for CHT Email text & CHT SMS text; select lockscreen style (0= Manila; 1= Windows; 2= HD Mini)
To restore default manila texture just leave the texture path in blank and restart Sense. CHTtweaks is provided without png textures because it was making so big. I have uploaded a pack CHTtweaks_PNGtextures.rar with some examples, just unpack it in the SD\CHTtweaks folder and select your favorite, delete, add new textures ... and share them with us! I havent done any of this nice graphics. I am taking graphics from NordPolCamper, MrBeO, LNando84, Santod040, [email protected], _leciel_, S-Droid, Sternas & ericv99. Thank you so much for them! Special thanks to LNando84 for all the good work and help with the setting menu.
Installation:
CHT2.0.0 needs to be installed previously.
Switch Off Sense.
uninstall any previous version, acept soft-resset.
Install CHTtweaks.v0.97.cab in device, accept soft-resset.
Install JMLMenuSense 1.60 or higher in device, only in case you allready have not installed for other widgets (v1.75 not working)
Extract CHTtweaks_PNGtextures.rar in device or SD, I use to do it in \Storage Card\CHTtweaks
Switch Sense On
Find CHTtweaks in Start Menu\Programs & CHT menu.
You can uninstall CHTtweaks.v0.97.beta.cab. If you have any problem after deinstallation use restore.CHT.original.zip, just copy the original files from inside the rar to windows folder, acept overwrite and do restart Sense.
Also you can restore independently any modified file of CHT and the rest will continue working. I mean if you like the way of changing the CHT Email background but nothing else, just restore all the files excepting 29C5E347_manila. CHTtweaks will continue working only with this feature.
NEW! ONE CLICK TO HIDE TASKBAR NEW!
Just copy the file into the zip to windows folder and accept overwrite and restart Sense
LOCKSCREEN
CHTtweaks.097.beta contains ICS lockscreen for CHT2.0. This lockscreen substitute CHT Windows lockscreen. It is made by 3 .png files: ICSlockscreen.png (256x256) for the slider; ICSlockscreen2.png (256x256) for the slider pressed; ICSlockscreenBG.png (512x512) for the lockscreen background. Of course you can change this graphics as usual in CHTtweaks, just go to lockscreen menu and select textures from internal memory or SD (to get default graphic just leave it blank. You can also select the application to launch by unlocking in left slide. As most of the CHTtweaks you can use this ICS lockscreen independently of CHTtweaks.
The others lockscreens (manila & HDmini style) can also be customized with CHttweaks.
MIUI LOCKSCREEN
***download***
SENSE 3.0 LOCKSCREEN
***download***
TEXT NOTIFICATIONS
Configurable: text font, size, color, alignment, language, displayed text
TEXT FONTS
APPOINTMENTS
Tip: Go to HKCU\Software\HTC\Manila\CHT.Tweaks.TransparentHomeAgenda and set the opacity value for the agenda from 1 to 100 (50, 33, etc)
SOFTKEYS
Just a few clicks and you can change easily the softkeys. Also I added the option to disable the softkeys icon enlarge when pressed, accordingly to the work done here by devil-strike based on the script of rat_2665
CHTtweaks includes the option to have transparent softkeys background in one click. All this changes in softkeys needs re-start Sense. Also includes the file restore.CHT.original.rar in case you want to uninstall this cab, just copy the files inside the rar into \windows and restart sense.
Special thanks to lnando84 for the tests and the work in the setting menu and all Dream Team for the nice graphics.
Tip: I am uploading a few transparent softkeys icons very useful to play a bit with this softkeys backgrounds textures. Enjoy!
Tons of Softkey bars (Docks) uploaded in this post and followings. Thankyou very much ezzie (& Nando)
EMAIL & SMS
in this post and followings ezzie has uploaded a lot of graphics for SMS & Email ready to use wth CHTtweaks. Thanks a lot!
HOMECLOCK
Thanks to the amazing work of Dunc001 in SimClock a lot of new possibilties are comming to the world of CHTwidgets. CHTtweaks add the feature to easily change the texture of some elements of the homeclock using png files.
Just open CHTtweaks menu setting (CHTquicklink / CHTfreelink >> miscellaneous) go to home clock setting and use the file explorer to find your favourite texture for the home analog clock, the numbers of the home flipclock and the colon (two dots). Also select the font text for the weather info & text clock. You can always restore the defeult textures just deleting the texture path and restarting sense
EDIT: With so many changes of home analog clock may be useful this set of clock hands good for any light-dark clockface
Thanks to Lnando84 you can find here (and followings posts) lots of clocks in png format, ready to use with CHTtweaks!
A few clocks, softkeys, Lockscreens, etc to enjoy with CHTtweaks. Unzip in SD card and select it with CHTtweaks:
CHTtweaksPNG
STILL BETA STAGE, FEEDBACK AND SUGESTIONS IS MUCH APRECIATED
Some adapted themes: (here more adapted themes by cocopuf)
https://plus.google.com/u/1/photos/106797872708479667834/albums/5947715799326302689?sort=1
Here is the kitchen. In the folder \workspace\lua there are all the files decompiled and commented, the modified code is marked with --CHTtweaks where is changed from the original. It also has been modified the mode9 file 094C0231_manila, it was necessary for the appointments transparency. You can run it without devMode (_Deploy_to_device_normal_mode.bat). All credits & thanks to Co0kie Monster.
Also uploaded the source and kitchen of most of my widgets including CHTtweaks:
Poy_fullKitchen.zip - 49.19 MB
HOW IT WORKS?
Uploaded with ImageShack.us
CHTtweaks 0.93.beta introduces small modifications in the lua files of Co0kie Home Tab 2.0.0 which makes that some properties of a few elements (homeclock, lockscreen unlocker, email background, etc) can be set in the registry HKCU\Software\HTC\Manila\CHT.Tweaks.XXXX. This changes are compatible with any other widget or standar CHT skin: if there is no CHTtweak registry setting the default texture will be used.
Attaching the source of all modified files in which has been included the marks --CHTtweak for easy indentification. As example the code below say to CHT to use the png file for the home analog clock -defined previously by CHTtweaks setting menu, but if it does not exist it will use the default manila file
--#####Set texture for home analog clock by CHT Tweaks
SetTextureHomeAnalogClock= function ()
poyTweaks_HomeAnalogClock_texture_path = GetCHTSettingString("Tweaks.HomeAnalogTexture", "\\windows\\htc\\Home\\Assets\\Images\\Home\\VGA\\AnalogClock_bg.qtc")
analogclock:SetTexture(poyTweaks_HomeAnalogClock_texture_path)
end
SetTextureHomeAnalogClock ()
_application.Store:GetValueChangedEvent(Lifetime_Permanent, "CHT.Tweaks.HomeAnalogTexture"):connect(SetTextureHomeAnalogClock)
--#################################
Click to expand...
Click to collapse
CHTtweaks Setting Menu configure the registry, then this configuration is applied to CHT
And never forget Co0kie's words specially where is said " ... The source code is freely available. You may modify it as you wish, but I do have a request:
If you're going to post a CHT modification publicly, post only the modified files and not the whole thing, so that the installation procedure is:
1) Install the main CHT cab first.
2) Install your modification.
Alternatively, if you want to use any part of this source code in your own independent manila project, you are free to do so, but please do post a mention that you're using this code and what parts.
That's the only thing I ask. I hope everyone will honour it. Thanks, here's the source, have fun with it."
Thanks again Co0kieMonster
CHTtweaks 1.8.5
(available beta 2)
At first BIG THANKS TO CO0KIE MASTER its amazing how he has converted a static home tab into a flexible and very customizable home tab. Every time I look a bit into the source files I get impressed what Co0kie has done. Not only the CHT itself, but also the source is free and available for use and enjoyment.
With this development I try to bring some of the advantages of CHTweaks to CHT1.8.5's friends. So I have started with the analog and flip clock (basic CHTwidget) and CHTtweaks can change the elements of the analog clock -face & hands- using textures in PNG format stored in any folder of device or SD. In the standard flip clock can be changed the numbers (always in PNG format) and add 2 dots between hours and minutes. Also clock background can be changed using textures in PNG format and set opacity from 1=transparent to 100. Aditionaly has been added some work i the Home Title Bar (transparency). Further development depends on comments and sugestions.
Installation
1. Install CHT 1.8.5 (& rest of the components)
2. Install CHTtweaks 1.8.5.betaXX.cab, softresset
3. Aditionally I recommend to install JMLMenuSense v1.60 (or higher) for access to setting menu
4. Access to configuration menu in \start menu\programs
5. Get lots of textures in PNG format here and everywhere in XDA
**DOWNLOAD HERE**
Attaching the kitchen. The source with the modified files are in folder \workspace\_lua\. Everybody is free to add features, correct bugs, edit files, delete them, change, sale, mirror, or whatever want to do with them. Use is not compulsory. CHTtweaks1.8.5 works fine in my HD2(WM6.5.x) with CHT1.8.5 installed, but if it does not work in your device I will help as much as I can.
If you want to try the kitchen*, do the changes in the lua files with notepad2 (inlcuded in tools folder) then run _Deploy_to_device_normal_mode.bat and the files will be recompiled and deployed to your device fro test. Once the changes are done, just run _Generate_files_for_cab.bat and will get the files ready for the cab in folder \cab\_files_final\
* at first the device must be synchronized with PC and run z_init.bat only once at the beginning.
CHTtweaks 1.8.5 includes Typoclock
A reduced version of Typoclock has been added as layout in standard textclock. This reduced typoclock has time, date and alarm icon, and can be configured in CHTtweaks 1.8.5 setting menu (or directly in registry HKLM\Software\HTC\Manila\CHT.Tweaks.XXX). It can be changed: text font for time and date; color; text sizes; vertical position; horizontal alignment (left, center, right); hide alarm icon; alarm icon position.
To activate Typoclcok on CHT 1.8.5 install CHTtweaks, go to menu > edit home layout > select level > Advanced > show text clock > typoclock; for configuration just go to CHTtweaks setting menu (start menu\programs) > typoclock > set your favorite parameters.
Click to expand...
Click to collapse
[beta2] includes new layout in classic CHT clock for stand alone weather; control over the text font in weather info for home; and lockscreen textures in PNG format
Click to expand...
Click to collapse
Addon for CHT
Hola, looks and works very good
Great job and lot´s of work and thinking behind it. Congratulations amigo.
It works on both of my devices HD2 & HD Mini, much better than expected
For beeing a beta, I´d say it´s rather a "release candidate"
Hi Poy,
WOW !!!
What a great job amigo mio, this is really another huge step to a higher level in WM and CHT Widgets.
If all this great things continue growing at this pace we will soon see a massive immigration coming from the dark OS sides
Once again amigo, Big Thanks for sharing your amazing work
OMG OMG OMG......
I may have to leave "sick" to get home and apply this.....does tweakideation sound like a legit diesese?
Hi again Maestro,
I wondering if you have installed the Dunc"s CHT Fix40 Slots-Widgets you posted here and could you please check in your registry to see if it is shown 40 or 20, I just installed this fix but in my registry it still show 20 slot, is this right?
Thanks in advance, amigo
[email protected] said:
Hi again Maestro,
I wondering if you have installed the Dunc"s CHT Fix40 Slots-Widgets you posted here and could you please check in your registry to see if it is shown 40 or 20, I just installed this fix but in my registry it still show 20 slot, is this right?
Thanks in advance, amigo
Click to expand...
Click to collapse
I really do not know what cab i have installed so many test ... but for sure is Dunc's CHT fix 40 widgets. Dunc's mod of mike2nl's CHT fix 40 widgets is not included in CHT Tweaks v0.90. Its linked to this post: http://forum.xda-developers.com/showpost.php?p=12016868&postcount=24
I thinks that Dunc's mod of mike2nl's CHT fix 40 widgets should be standar nowdays, it should be added to CHT2.0.1 (or eventually to CHT Service Pack 1). This fix allows 40 widgets and reserve 8 slots for BG widgets. If you don't have 40 slots in the registry just add it: HKCU\Software\HTC\Manila\CHTI.AddonWidgets.Count = 40
CHT Tweaks its just a protection to avoid overwrite the file home.mode9 when themers are working on home flip clock to convert it to digital clock with 2 dots & no flip line. Now you can get this mod without touching this fixed file. Something similar happends with CHT_rat_weather_library, with CHT Tweaks I am trying to protect this valious file to be overwritten.
Thanks for your fast reply Maestro.
I understood perfectly amigo, so I going to change the value 20 to 40 in the registry and I hope when I get my 21' widget everything goes ok
I just installed the 40 fix now because I know that amazing widgets are coming soon
Thanks again Amigo.
please give me stick note (hola) widget! Thanks
you'll find it here: http://forum.xda-developers.com/showthread.php?t=965868&page=3
in cab folder into the .rar
CHT Fundamental Questions
poyensa said:
....
I thinks that Dunc's CHT fix 40 widgets should be standar nowdays, it should be added to CHT2.0.1 (or eventually to CHT Service Pack 1). This fix allows 40 widgets and reserve 8 slots for BG widgets. If you don't have 40 slots in the registry just add it: HKCU\Software\HTC\Manila\CHTI.AddonWidgets.Count = 40
CHT Tweaks its just a protection to avoid overwrite the file home.mode9 when themers are working on home flip clock to convert it to digital clock with 2 dots & no flip line. Now you can get this mod without touching this fixed file. Something similar happends with CHT_rat_weather_library, with CHT Tweaks I am trying to protect this valious file to be overwritten.
Click to expand...
Click to collapse
Now we´re getting to one of the main questions or issues since so many addon widgets and Cookie´s kitchen have been released. We are indeed loosing our "base2 or let´s say, "common ground"....
Guess we need a "Base Definition" in order to avoid future probs with "crucial" files in order to keep ONE basic CHT version & vision. I also think it is IMPERATIVE and every mod of this kind should always post a detailled list of the included and modded files, and maybe even provide the o files in case of probs. See notes and issues when uninstalling one of these files or widgets.
I´m not sure about a Service Pack... I would rather say this requires a new release, so all that´s been done up to now should be compatible with CHT 2.0 and all that´s beeing done in the future, based on your findings and Dunc´s SK-i Theme (and the evolutions for CHT within it) as well as from other CHT Members and users. Call it maybe CHT 2.5, or CHT 3.0 because it´s not a "minor update" like a bug fix or some addons. We´re talking about fundamental changes in CHT
Maybe this could be discussed with users and devs in actual CHT thread, or even a new thread? I´m asking this, because like with the update and new release of CHT 2.0, there are quite still a lot of CHT users that prefer older version (CHT 1.8.5.1) and have decided not to change. I guess there will be also enough that might want to stick to "unchanged" 2.0 instead of having to worry that new widgets need new mods on crucial files like home.mode9, etc...
Skinning mods of image files is one thing, as well as tweaking or partially modding mode9 files for fontsize, color, etc..., but mayor changes affecting luas, or other items in mode9 should be done very carefully, especially considering the fact, that this files and changes call upon a lot of other files, and this can really screw your Sense
Interesting and unique mod to CHT. I will try this, and post comments later! Thanks for sharing...
poyensa said:
...
CHT Tweaks its just a protection to avoid overwrite the file home.mode9 when themers are working on home flip clock to convert it to digital clock with 2 dots & no flip line. Now you can get this mod without touching this fixed file. Something similar happends with CHT_rat_weather_library, with CHT Tweaks I am trying to protect this valious file to be overwritten.
Click to expand...
Click to collapse
BHS Interceptor said:
... I also think it is IMPERATIVE and every mod of this kind should always post a detailled list of the included and modded files, and maybe even provide the o files in case of probs. See notes and issues when uninstalling one of these files or widgets.
.... I guess there will be also enough that might want to stick to "unchanged" 2.0 instead of having to worry that new widgets need new mods on crucial files like home.mode9, etc...
Skinning mods of image files is one thing, as well as tweaking or partially modding mode9 files for fontsize, color, etc..., but mayor changes affecting luas, or other items in mode9 should be done very carefully, especially considering the fact, that this files and changes call upon a lot of other files, and this can really screw your Sense
Click to expand...
Click to collapse
Yes, it´s me again After a few extensive tests, I do insist that a "File List" is imperative for not having to BAN overwriting or modding files that are crucial to the system and Sense. I´ve been switching mode9´s and Luas with CHTS now, and if you do it right, there will be no issues, but you need to know the files that are changed BEFORE installing the widgets or mods, so you can back them up before damage is done. The xmls included in all widgets, AND HERE IN THE PAST THERE HAVE BEEN A LOT THAT WHERE NOT WRITTEN PROPERLY AND THUS UNUSEFULL AND DANGEROUS, have to be checked and approved, otherwise they will be no good. CHTS can help overcome these problems if used properly. CHTS can save those crucial files before install to a save profile, and then you can use any file in another profile and so switch safely back and forth. But CHTS needs to know these files before install in order to back up / save the original ones
I have been able to switch from a Profile configured with rat´s changed home.mode9 file (his weather library needed for his last widgets) to another profile using the original (well, not original since CoOkie also modified the same file for CHT - so there is an Original file, then the CHT file and now the modded CHT files for that) CHT home.mode9 file and everything went fine. But still the manila/sense versions need to bee watched, since not all mode9 are version independent
Very nice useage of JMLMenuSense!
Sadly I cannot use Manila on my phone (too slow for normal use) - But indeed very useful!
Congratulations!
GreeZ!
Freezy1982
Guys, i have read that Dunc has made a 40 widget fix for CHT. So far i can remember about that issue... i have done this fix and others, in team work of BHS and me before x-mas and i have published this in the CHT Artworkgroup as a beta testing issue.
Dunc please tell me why you have realeased this fix before we have done our intesive tests of this release is ok.
Hi again Mike, I dont see any controversy there. We are recommending to use Dunc`s verssion for the the CHT fix 40 slots -widgets, because it also has been altered to allow the use of 7 backgrounds widgets, as impleted in Blue Sk-i theme or CHT Walls. We all recognise your work and credits have been properly granted. Dont waste your time and energy on that, we have still a lot of work to do
mike2nl said:
Guys, i have read that Dunc has made a 40 widget fix for CHT. So far i can remember about that issue... i have done this fix and others, in team work of BHS and me before x-mas and i have published this in the CHT Artworkgroup as a beta testing issue.
Dunc please tell me why you have realeased this fix before we have done our intesive tests of this release is ok.
Click to expand...
Click to collapse
poyensa said:
Hi again Mike, I dont see any controversy there. We are recommending to use Dunc`s verssion for the the CHT fix 40 slots -widgets, because it also has been altered to allow the use of 7 backgrounds widgets, as impleted in Blue Sk-i theme or CHT Walls. We all recognise your work and credits have been properly granted. Dont waste your time and energy on that, we have still a lot of work to do
Click to expand...
Click to collapse
Hola again, Mike and Poy, yes it´s true that Mike worked on that widget fix and it´s not about beeing mentioned, but about possible issues and misunderstandings about this particular and specific fix for Dunc´s SK-i Theme and CHT in general...
"The attached zip folder contains seven background widget cabs which will install the backgrounds you see used in the screenshots. You can choose to install any number of these and after you have installed them you can easily edit them using the reg changes and new images. However to get them to appear behind everything else on screen you first need to update the home.mode9 file. You will find a cab to install the mode9 and make the necessary reg edit in the zip folder with the widget cabs. Poyensa has edited this one for me to make the first eight widget slots appear behind eveything else so I have his original background widget and my seven installed and working perfectly. As an added bonus, and because the backgrounds will use up to eight widget slots this mode9 is also modified to allow up to 40 CHT widgets to be installed (the original maximum was only 20) so you shouldn't run out of space!"
And actually it was only 10 in the original coded but 20 "targetet"
The original CHT mode9 file (7c60907d_manila) indeed allowed only 20 slots, but in the Sk-i theme, the one modded or used was not the original file from CHT, but the one Mike modded!!! and not tested/approved for release
So let´s wait for Mike´s reasons and motives for not releasing it yet.....
A few weeks back, it was agreed that there were still some issues pending to be resolved prior to a public release as you remember when rat informed us about the mode of 3a8e04af_manila
No dissapointments friends, I have edited my posts to give propper credits to mike2nl. I've really always thought that mike is the creator of the original fix. Sorry for the inconveniences that this may have caused.
Hi guys,
Rumor on the street has it that there is no API for making watchfaces.. Well, that's just plain wrong. I've been working with Daniel "Master of Time" Ortiz, aka @kuronosan. We've worked out a ton of the details in order to make watchface APKs easy! It's as simple as making some png resources and then putting code behind them. You just need a framework and that framework is right here! We are going to squash that "no API" rumor here and now. We've not only got the APis here, we've added nice things like transitions which you won't find on many of the other watches!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What's it all about?
This package consists of 2 major parts, the Mobile App, and the Wear App.
mobile app
The mobile app's job is to deploy the Wear app and provide an icon/view which gets installed in the app drawer, allowing the user easy access to uninstallation. After the Wear "MicroApp" App is deployed, this application serves little function. Its a little funny as the MicroApp is much larger than the primary app due to resources
Wear App
The Wear App has two entirely different activities built into it; Analog and Digital. Wear applications are basically live wallpapers. They use the Background Provider permission and they have a few additional properties such as the need to react to the DisplayManager's Screen On, Screen Dim and Screen Off commands. Aside from this, they are simply eye-candy.
Digital
The Digital section of this watch was written entirely from scratch by yours truely. I found that the animations involved in watchfaces can bloat an activity significantly. So, I use Java Inheritance to extend the classes in order to logically separate things in this way
DigitalWatchfaceActivity - Handles setting up the views and intent receivers for date/time/battery and updating the time
DigitalWatchfaceActions - Handles PowerManager commands and aesthetic elements such as animations/transitions.
DigitalWatchfaceApp - Used to launch the activity, reserved for future use.
Analog
Watchface-Gears has provided an awesome starter for Analog Watches. Rather than reinvent the wheel, we've used their base. I had to rework a considerable chunk to add in fading transitions and refactoring for analog/digital separation. When all was said and done, between mine and Daniel Ortiz's work, the only thing that's original is Watchface-Gears library. We kept Watchface-Gears in tact because it is an awesome library. It also set the license used throughout the project. (Apache)
How do I make my own?
Here's how you get started. Being that this is mostly artwork, I can't tell you "how" to do it... But, I can do what to do.
Download the source.
Load it into Android Studio
Modify the package name suffix (watchface/gradle.properties: currentApplicationIdSuffix=MyCustomWatchName), and make it unique string, so when you generate a signed APK it doesn't collide with mine or others. Better yet, you should rename the entire package but that is a detailed operation.
Modify both the Mobile and Wear (watchface/wear/src/main/AndroidManifest.xml & watchface/mobile/src/main/AndroidManifest.xml) files to rename the watch faces and app names for the Wear Picker.
Build the package now to verify it works after you've changed properties.
If you want to customize the Analog watchface app, all you need to do is modify the PNGs in watchface/wear/src/main/res.
If you want to customize the Digital watchface app, you will rework both the wear/src/main/res/layout/digital_watch_layout_awake.xml and the wear/src/main/res/layout/digital_watch_layout_dim.xml. These are standard Android XML layouts.
If you don't want to use the Analog or Digital, remove the AnalogWatchfaceActivity's or DigitalWatchfaceActivity's <activty> entry from watchface/wear/src/main/AndroidManifest.xml
When you're done with the layouts, update the PNG files in watchface/wear/src/main/res/drawable with screenshots for the Background Provider picker (shown near the bottom).
Get creative!
CASUALWear Images
see attached images
Transitioning through Background Providers:
See attachments
Downloads and Source
You can get source here: https://github.com/adamoutler/watchface
Download it free here: https://play.google.com/store/apps/details?id=com.casual_dev.CASUALWatch.release
Get the donate version and give me an excuse for my wife here: https://play.google.com/store/apps/details?id=com.casual_dev.CASUALWatch
Wow!!!!
You guys are awesome... Great to see you two were able to pull this project that is otherwise much needed. Thanks Dan and Adam. =D
excellent. thankyou.
Sent from my D6603 using Tapatalk
Nice and thanks!
BTW any news about the new Android Wear 2 that was due to be released on Nov 3?
great
:good: If Adam wouldnt do it then who will try it . great work Adam
AdamOutler said:
Hi guys,
Rumor on the street has it that there is no API for making watchfaces.. Well, that's just plain wrong. I've been working with Daniel "Master of Time" Ortiz, aka @kuronosan. We've worked out a ton of the details in order to make watchface APKs easy! It's as simple as making some png resources and then putting code behind them. You just need a framework and that framework is right here! We are going to squash that "no API" rumor here and now. We've not only got the APis here, we've added nice things like transitions which you won't find on many of the other watches!
What's it all about?
This package consists of 2 major parts, the Mobile App, and the Wear App.
mobile app
The mobile app's job is to deploy the Wear app and provide an icon/view which gets installed in the app drawer, allowing the user easy access to uninstallation. After the Wear "MicroApp" App is deployed, this application serves little function. Its a little funny as the MicroApp is much larger than the primary app due to resources
Wear App
The Wear App has two entirely different activities built into it; Analog and Digital. Wear applications are basically live wallpapers. They use the Background Provider permission and they have a few additional properties such as the need to react to the DisplayManager's Screen On, Screen Dim and Screen Off commands. Aside from this, they are simply eye-candy.
Digital
The Digital section of this watch was written entirely from scratch by yours truely. I found that the animations involved in watchfaces can bloat an activity significantly. So, I use Java Inheritance to extend the classes in order to logically separate things in this way
DigitalWatchfaceActivity - Handles setting up the views and intent receivers for date/time/battery and updating the time
DigitalWatchfaceActions - Handles PowerManager commands and aesthetic elements such as animations/transitions.
DigitalWatchfaceApp - Used to launch the activity, reserved for future use.
Analog
Watchface-Gears has provided an awesome starter for Analog Watches. Rather than reinvent the wheel, we've used their base. I had to rework a considerable chunk to add in fading transitions and refactoring for analog/digital separation. When all was said and done, between mine and Daniel Ortiz's work, the only thing that's original is Watchface-Gears library. We kept Watchface-Gears in tact because it is an awesome library. It also set the license used throughout the project. (Apache)
How do I make my own?
Here's how you get started. Being that this is mostly artwork, I can't tell you "how" to do it... But, I can do what I can do.
Download the source.
Load it into Android Studio
Modify the package name suffix (watchface/gradle.properties: currentApplicationIdSuffix=MyCustomWatchName), and make it unique string, so when you generate a signed APK it doesn't collide with mine or others. Better yet, you should rename the entire package but that is a detailed operation.
Modify both the Mobile and Wear (watchface/wear/src/main/AndroidManifest.xml & watchface/mobile/src/main/AndroidManifest.xml) files to rename the watch faces and app names for the Wear Picker.
Build the package now to verify it works after you've changed properties.
If you want to customize the Analog watchface app, all you need to do is modify the PNGs in watchface/wear/src/main/res.
If you want to customize the Digital watchface app, you will rework both the wear/src/main/res/layout/digital_watch_layout_awake.xml and the wear/src/main/res/layout/digital_watch_layout_dim.xml. These are standard Android XML layouts.
If you don't want to use the Analog or Digital, remove the AnalogWatchfaceActivity's or DigitalWatchfaceActivity's <activty> entry from watchface/wear/src/main/AndroidManifest.xml
When you're done with the layouts, update the PNG files in watchface/wear/src/main/res/drawable with screenshots for the Background Provider picker (shown near the bottom).
Get creative!
CASUALWear Images
mobile app: http://forum.xda-developers.com/attachment.php?attachmentid=2996683&stc=1&d=1414986371
Digital:
Analog
Transitioning through Background Providers:
See attachments
Downloads and Source
You can get source here: https://github.com/adamoutler/watchface
Download it free here: https://play.google.com/store/apps/details?id=com.casual_dev.CASUALWatch.release
Get the donate version and give me an excuse for my wife here: https://play.google.com/store/apps/details?id=com.casual_dev.CASUALWatch
Click to expand...
Click to collapse
purchased (so the wife is more likely to allow future indulgences)
Does this solve the issue of notifications not being sizeable to a less intrusive size like the default faces?
Thanks Adam
Hi Adam,
I managed to get watchface build and run on a previous version of android studio. Now that I have updated it I'm unable to build it anymore. Damn! I've changed some gradle properties according to:
http://tools.android.com/tech-docs/new-build-system
Renamed a few properties to make things more consistent.
BuildType.runProguard -> minifyEnabled
BuildType.zipAlign -> zipAlignEnabled
BuildType.jniDebugBuild -> jniDebuggable
BuildType.renderscriptDebug -> renderscriptDebuggable
ProductFlavor.renderscriptSupportMode -> renderscriptSupportModeEnabled
ProductFlavor.renderscriptNdkMode -> renderscriptNdkModeEnabled
Click to expand...
Click to collapse
But I'm getting stranded on:
Code:
Error:(27, 0) Could not find property 'outputFile' on com.and[email protected]a49d4b5.
I know I'm not the greatest dev in the world so I need some help here. Please?
Awesome thank you! Now time to bang my head on the keyboard for a while and make this work!
With Android Wear 5.01 this maybe old?
AstroDigital said:
With Android Wear 5.01 this maybe old?
Click to expand...
Click to collapse
Yes, received an email from Google 2 days ago saying I need to update to use API 5.02 otherwise my app will cause problems and stop working after January 31st 2015.
Managed to mangle my way through a Google provided template, but having issues using images instead of drawPaint for the hands....time to learn.
SchmilK said:
Yes, received an email from Google 2 days ago saying I need to update to use API 5.02 otherwise my app will cause problems and stop working after January 31st 2015.
Managed to mangle my way through a Google provided template, but having issues using images instead of drawPaint for the hands....time to learn.
Click to expand...
Click to collapse
Code:
canvas.save(Canvas.MATRIX_SAVE_FLAG); //Saving the canvas and later restoring it so only this image will be rotated.
canvas.rotate(angle);
canvas.drawBitmap(bitmap, left, top, null);
canvas.restore();
This is the method I use to rotate bitmaps.
By the way what do you think about my first watchface: https://dl.dropboxusercontent.com/u/4281191/Line2.apk ?
After some fiddling around I was able to add a settings menu on the watch itself ^^
seahorsepip said:
Code:
canvas.save(Canvas.MATRIX_SAVE_FLAG); //Saving the canvas and later restoring it so only this image will be rotated.
canvas.rotate(angle);
canvas.drawBitmap(bitmap, left, top, null);
canvas.restore();
This is the method I use to rotate bitmaps.
By the way what do you think about my first watchface: https://dl.dropboxusercontent.com/u/4281191/Line2.apk ?
After some fiddling around I was able to add a settings menu on the watch itself ^^
Click to expand...
Click to collapse
I'll have to try that, thanks! All this time I"ve spent trying to hack through sample code, I probably could have learned how to program myself. :-/
Is there any software to hack instagrams on this thing bruh
How to make new watch faces for Amazfit
Finally, after a long search, I have been able to find the way to make new Amazfit watch faces, demanding me hard work, but there is so much to do yet, many tests are needed. At the moment I only tested how to make analogic watch faces, not digital ones.
What is needed to make watch faces?
A PC software that can open images with alpha channel like Gimp, Photoshop, etc.
Find attached the download a template that I used to make the first fully working custom watch face. Use it just by changing image files and not rename it.
https://mega.nz/#!GUpSwAqa!kwlCHfx8b1evRUjbh3VMN-eXNRfnfnsoZrhrVd29IdY
In this tutorial I will use Photoshop, but these same steps can be done with other graphic software.
Ready to start!
Files to draw for watch face:
Background image
Background image with an 8 colors palette
Hours timehand image
Hours timehand image with an 8 colors palette
Minutes timehand image
Minutes timehand image with an 8 colors palette
Seconds timehand image
Preview image
All images with an 8 colors palette are needed for standby mode and it can only be drawn with the following 8 colors:
#ffffff
#ffff00
#ff00ff
#ff0000
#00ffff
#00ff00
#0000ff
#000000
If you want you can download the photoshop palette I made:
https://mega.nz/#!PQgVhIaJ!dR6RwuyOj_cVWYG8l5nzXLCv0D-iG11_RvNA5lvrLb0
Here is the list of all images to draw with important information such as file name, file type, file resolution and colours palette to be used for the image.
Background in normal mode
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Background in standby mode (8 colors only!)
Hours timehand in normal mode
Hours timehand in standby mode (8 colors only!)
Minutes timehand in normal mode
Minutes timehand in standby mode (8 colors only!)
Seconds timehand in normal mode
Preview to select the watch face
We have drawn all images of our simple watch face and can adjust files in the respective folders.
This is the final structure:
xml files
An Amazfit watch face needs 2 configuration xml files:
description.xml
watchface.xml
description.xml
This is the file I used for my watch face, parameters are self explaining so I will not add more. You can make a similar file only by changing watch face name and author.
NB: tag “settings” to “true” allow to modify the watch face inside the watch menu to load custom background as it is already possible with some standard watch face.
watchface.xml
This file contains images path to be used in the watch face.This file has a complex configuration and it also has the widget configuration to use inside the watch face. I have not been able yet to test everything as there is no official documentation and all data have been extracted from decompiled apk.
Simple version without widget:
Available attributes, not yet all tested:
config
configlist
dataType
height
id
mask
model
preview
type
width
x
y
Example of file with a widget:
The widget dataType are working:
“1” step
“2” today distance
“3” total distance
“4” calories
“5” heart rate
“6” date
“10” battery
The widget dataType aren't working:
“8” weather
“9” Air quality
“11” unknown
Making of watch face file
To make a file to fit Amazfit standard, just zip all the files and rename the zip with .wfz*extension in this way:
How to copy the new Watch Face inside Amazfit
Copy the watch face file inside the watch as any music file, so:
Turn on the Amazfit and connect it to PC
Open the main folder whit the list of all folders
Search the WatchFace folder, if not existing just make it (case sensitive)
Copy the .wfz file inside the WatchFace folder
Test the watch face from the watch!
Result
Normal mode:
Standby mode:
Thanks to @[Jaco69] for helping me in the translation
Great !
Thx for your job.
Well done !
Envoyé de mon MHA-L29 en utilisant Tapatalk
Awesome! Thanks!
Sent from my Z2 Plus using Tapatalk
Great work!!
I'm a bit surprised about the fixed 8 color palette. Are you sure about that? Some of the existing watchface backgrounds do not seem to only use these fixed colors in locked mode.
Neuer_User said:
Great work!!
I'm a bit surprised about the fixed 8 color palette. Are you sure about that? Some of the existing watchface backgrounds do not seem to only use these fixed colors in locked mode.
Click to expand...
Click to collapse
I know, i try a lot and if i use difference palette the images aren't show or are tranform in 8 color mode
I fixed widget example file Image, before there was an error
Cracklydisc said:
I fixed widget example file Image, before there was an error
Click to expand...
Click to collapse
Thanks. I tried to use it with no success so far. Already thought I am stupid I tried to put it into ".WatchFace" (was already existing on my watch) as well as "WatchFace" (new folder).
Gonna try again with the new file
Very Nice Tutorial, just a quick look what I've applied as a new watchfaces
Tips for creating background images (8c folders), it's not about 8c pallete, as long as your image does not exceed 10Kbytes (you can save it as png-8 with 256 colour if it doesn't exceed 10Kbytes in size), it would be fine, so make sure you check the size before zipping the files. The size for background images (outside 8c folder) are free, just make sure the size is not exceed 200Kbytes, so it would not take too much space on the watch memory.
penguinunix said:
Very Nice Tutorial, just a quick look what I've applied as a new watchfaces
Click to expand...
Click to collapse
Great Job!
Cracklydisc said:
How to make new watch faces for Amazfit
The widget dataType are (not tested) :
“1” step
“2” today distance
“3” total distance
“4” calories
“5” heart rate
“6” date
“8” weather
“9” Air quality
“10” battery
“11” unknown
Click to expand...
Click to collapse
1-6, 10 - Work :good:
8, 9 - Not work
https://forum.xda-developers.com/album.php?albumid=14026&pictureid=55256
https://forum.xda-developers.com/picture.php?albumid=14026&pictureid=55255
PrizrakS said:
1-6, 10 - Work :good:
8, 9 - Not work
Click to expand...
Click to collapse
Thanks a lot! I find these value in decompiled apk maybe in the future will be activated
penguinunix said:
Very Nice Tutorial, just a quick look what I've applied as a new watchfaces
Tips for creating background images (8c folders), it's not about 8c pallete, as long as your image does not exceed 10Kbytes (you can save it as png-8 with 256 colour if it doesn't exceed 10Kbytes in size), it would be fine, so make sure you check the size before zipping the files. The size for background images (outside 8c folder) are free, just make sure the size is not exceed 200Kbytes, so it would not take too much space on the watch memory.
Click to expand...
Click to collapse
Very NICE! Care to share?
Cracklydisc said:
Thanks a lot! I find these value in decompiled apk maybe in the future will be activated
Click to expand...
Click to collapse
Thank you for the discovery!
I tried all the options on the screen at the same time 1. That worked-I wrote.
For a self made screen 2, but photos are not yet gives added. Tired of the truth the coordinates to pick up (to fit)
Neuer_User said:
Very NICE! Care to share?
Click to expand...
Click to collapse
Here you go, just change to zip and unzip to see the source
https://mega.nz/#!9kB1TAQB!tHZYTiVRKIJ-U1BcpeSlMCJf3qdARqR31pBXXGEtS20
For those of you who get confused with coordinat, here the hints:
x = horizontal
y = vertical
center will be 160,160. if you add widget with size 40,40 to center the widget, use coordinat 120,120 (160-40)
Try to play with it, wish someone could make a graphical user interface to design the watch :laugh::laugh:
Someone have the link for the apk that can be used to take screenshoot? I forgot where can find the link ..
penguinunix said:
Here you go, just change to zip and unzip to see the source
https://mega.nz/#!9kB1TAQB!tHZYTiVRKIJ-U1BcpeSlMCJf3qdARqR31pBXXGEtS20
For those of you who get confused with coordinat, here the hints:
x = horizontal
y = vertical
center will be 160,160. if you add widget with size 40,40 to center the widget, use coordinat 120,120 (160-40)
Try to play with it, wish someone could make a graphical user interface to design the watch :laugh::laugh:
Someone have the link for the apk that can be used to take screenshoot? I forgot where can find the link ..
Click to expand...
Click to collapse
Thanks for sharing. Looks really great.
Now we need to find out, how we can "instruct" the settings part to allow choosing the other backgrounds you have in the wfz, and how to select what the widgets should show
---------- Post added at 06:15 PM ---------- Previous post was at 06:06 PM ----------
Btw. the official changelog to 1.2.11 mentioned some "tutorial at Huami Forum". If we can find and translate that, we might get some more insights into this, e.g. what the other attributes do etc.
Neuer_User said:
Thanks for sharing. Looks really great.
Now we need to find out, how we can "instruct" the settings part to allow choosing the other backgrounds you have in the wfz, and how to select what the widgets should show
---------- Post added at 06:15 PM ---------- Previous post was at 06:06 PM ----------
Btw. the official changelog to 1.2.11 mentioned some "tutorial at Huami Forum". If we can find and translate that, we might get some more insights into this, e.g. what the other attributes do etc.
Click to expand...
Click to collapse
That would be great, it's a good thing that huami keep it updated and it seems that they were reading what user want.
Neuer_User said:
Btw. the official changelog to 1.2.11 mentioned some "tutorial at Huami Forum". If we can find and translate that, we might get some more insights into this, e.g. what the other attributes do etc.
Click to expand...
Click to collapse
There you go! http://bbs.huami.com/thread-4939-1-1.html
alexinc said:
There you go! http://bbs.huami.com/thread-4939-1-1.html
Click to expand...
Click to collapse
No more info than my post, i read it 2 day ago
alexinc said:
There you go!
Click to expand...
Click to collapse
Only there's not blogged about the configuration to a file watchface.xml
Which fields as prescribe and what they stand for.
The fact that there are-there are here and here.
The question was to find the belonging thread on huami forum... That's what I answered. I already read it by Friday or at least I tried to.
Hello :fingers-crossed:. I present to you my program to create a watchfaces (.wfz). You can create watchfaces for Stratos, Pace and Verge.
- program only for windows ver. 7 and above,
- limit on the number of widgets in the project: 12,
- in the folder with the installed program there is a folder "Watch faces" which contains 3 unique watch faces,
- no hot keys,
- real-time changes,
- LoFi mode in real time,
- intuitive interface (i hope).
Your feedback will help make my program better
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
------HELP------
- in the tab "Watchface information", field "Title" - this is how the watch face will be called in your watch, archive name can be any,
- all changes in the tab "Watchface information" automatically saved every 5 seconds, or by pressing the enter key.
How to add configuration?
- press the button "+".
How to delete configuration?
- left-click on the configuration.
What's new
Ver. 1.0.1 Beta:
- fixed incorrect recording of color when saving, when figures are created through the program,
- correction of the name of executable files.
Ver. 1.1.0 Beta:
- fixed bug with loading widgets, the error was in the model number for the widget date,
- limiting the number of widgets increased to 8.
Ver. 1.2.0 Beta: 03/04/2019
- fixed bugs,
- changed widget selection window,
- now you can open wfz by Verge, but you will need to edit the coordinates manually,
- increased program stability,
- now when installing a shortcut is automatically added to the desktop,
- easter eggs added.
Ver. 1.3.0 Beta: 08/04/2019
- fixed bugs,
- increased program stability,
- the application has received administrator rights,
- slightly modified the widget selection window,
- slightly modified the watchface information window,
- added color selector,
- I had to turn off the quantization of the image while maintaining the lofi in the background, because it was not shown on the watch. Now a simple conversion to 8 colors. I will understand why this happens,
- statusbar widget is no longer forcibly written,
- completely reworked module working with numbers. Now you can upload the numbers individually and export them. And now you can do so. I don't know why, but now you can
Ver. 1.4.0 Beta: 11/04/2019
- fixed bugs,
- increased program stability,
- fixed bug with converting using quantization,
- added function to invert transparency of numbers. It works only if the numbers were created through the program,
- update check has been added.
Ver. 1.3.0 Beta: 08/04/2019
- fixed bugs,
- increased program stability,
- the application has received administrator rights,
- slightly modified the widget selection window,
- slightly modified the watchface information window,
- added color selector,
- I had to turn off the quantization of the image while maintaining the lofi in the background, because it was not shown on the watch. Now a simple conversion to 8 colors. I will understand why this happens,
- statusbar widget is no longer forcibly written,
- completely reworked module working with numbers. Now you can upload the numbers individually and export them. And now you can do so. I don't know why, but now you can
Ver. 1.5.0 Beta: 24/04/2019
- fixed widget "mileage" type bugs,
- slightly changed interface,
- added automatic selection of the widget when you hover the cursor,
- added application settings,
- now two types of font trimming are available,
standart:
advanced:
- the device selection window hints at a quick support for Verge,
- fixed bug with creating preview,
- now you can upload your watchfaces on your watch from the app (if watches connected),
- added new standart watchface.
Ver. 1.5.1 Beta: 24/04/2019
- fixed bug with a black background in power save mode,
- fixed not working download on the device.
Ver. 1.5.2: 08/05/2019
- found and fixed the cause of the application not starting,
- now loading to watch from application does not work, there is some problem with the library.
Ver. 1.6.0: 18/05/2019
- added time selector,
- added fonts preview,
- added Verge! (Beta) Now all the same as for Stratos.
- added automatic conversion of watchfaces from Verge to Stratos/Pace and from Stratos/Pace to Verge. The program determines whether the model belongs to the size of the background,
- several improvements have been added, I don’t remember which ones).
Ver. 1.6.1: 20/05/2019
- fixed widget bug,
- added file association,
- if you have version 1.6.0, the update check may not work This version fixes update check bug.
Ver. 1.6.2: 21/05/2019
- fixed bug with a second hand on the preview.
Ver. 1.6.3: 26/05/2019
- fixed some bugs.
Ver. 1.6.4: 30/05/2019
- fixed some small bugs.
- fixed a bug when loading numbers that are created using the program,
- fixed bug when saving to lofi (wrong color pallet),
- added 26w support in Verge.
Ver. 2.0.0: 30/06/2019
- fixed some bugs,
- updated design,
- rewrited wfz creation module,
- background configuration added
- timehands configuration added
- 2 standard dials added
Ver. 2.0.1: 30/06/2019
- fixed some bugs in wfz creation module
------Download------
Attention! Before installing, remove the previous version of the program.
Ver. 2.0.1
Thanks for donates: BravoCharlie, avraham, wearyour.tech, Ermenegildo Crippa, noname yandex.money, pablo cifuentes camacho, alberto lorenzi
Great job!
Good Job mate. If I try to open a wfz there does nothing happen. So you can't edit your previous created wfz.
The limitation to 5 widgets is a little too low.
skylow said:
Good Job mate. If I try to open a wfz there does nothing happen. So you can't edit your previous created wfz.
The limitation to 5 widgets is a little too low.
Click to expand...
Click to collapse
Thanks Please tell me more about it. You can't open any at all? Can you open wfz in the application folder? 5 widget limit for beta only.
VIzzAR said:
Thanks Please tell me more about it. You can't open any at all? Can you open wfz in the application folder? 5 widget limit for beta only.
Click to expand...
Click to collapse
Easy as pie. I had to start WFZMaker as administrator. Only then the program can open existing watchfaces. By the way. If you try to open an existing waz with more than 5 widgets, WFZMaker crashes.
But since jet the best program to create wfz. Keep going.
Another tiny bug is. If I save a createsd watchface with heartrate and open it again, the heartrate is gone and statusbar is diplayed instead.
I think your prog puts everytime when you export a new watchface, the statusbar in the wfz.
Another little thing. There is no low res background.
Hello thanks for this program. Is there anyway you could add 12 hour clock options for time and Fahrenheit temperature for us Americans LOL.
skylow said:
Easy as pie. I had to start WFZMaker as administrator. Only then the program can open existing watchfaces. By the way. If you try to open an existing waz with more than 5 widgets, WFZMaker crashes.
But since jet the best program to create wfz. Keep going.
Another tiny bug is. If I save a createsd watchface with heartrate and open it again, the heartrate is gone and statusbar is diplayed instead.
I think your prog puts everytime when you export a new watchface, the statusbar in the wfz.
Another little thing. There is no low res background.
Click to expand...
Click to collapse
The application crashed due to an error when loading the date widget, since somewhere the model has a value of 12, and somewhere 0. This bug is now fixed.
I have a statusbar in the program as a widget, and the very first one is written to the file, it is always recorded as well, so it could replace another widget. Now I have increased the number of widgets to 8.
You can by more about "There is no low res background"?
Kamakzie said:
Hello thanks for this program. Is there anyway you could add 12 hour clock options for time and Fahrenheit temperature for us Americans LOL.
Click to expand...
Click to collapse
I will add this to the program in the near future, but first there will be a few major updates
Hi, thanks for the app, I closed the app when I select some Fonts.
Much better now. Widgets are working perfect.
Programm should executed as admin.
In my case the low fi background is not displayed. Don't know why. Maybe it depends on the naming of the files.
Heureka. Found the problem with th lo fi background. Te 8c picture is in any way not in the right format, maybe colours, converted.
Maybe this will help you.
antotamara said:
Hi, thanks for the app, I closed the app when I select some Fonts.
Click to expand...
Click to collapse
The application crashes when you select some fonts, but most work? If so, write the font names for which the application crashes.
skylow said:
Much better now. Widgets are working perfect.
Programm should executed as admin.
In my case the low fi background is not displayed. Don't know why. Maybe it depends on the naming of the files.
Heureka. Found the problem with th lo fi background. Te 8c picture is in any way not in the right format, maybe colours, converted.
Maybe this will help you.
Click to expand...
Click to collapse
Not displayed in watches or in app? The application does not load the original LoFi, it generates them yourself. Administrator permission is required if the application is installed in the system folder.
never mind
the lo fi background is not shown on the watch. I'm sure it depends on the number of colours, used for the lo fi background.
Photoshop says you are using 9 colours but amazfit can only show 8 colour pics as lo fi background.
Great update has passed! (See the topic header)
Ver. 1.2.0 Beta: 03/04/2019
- fixed bugs,
- changed widget selection window,
- now you can open wfz by Verge, but you will need to edit the coordinates manually,
- improved program stability,
- now when installing a shortcut is automatically added to the desktop,
- easter eggs added.
VIzzAR said:
Great update has passed! (See the topic header)
Ver. 1.2.0 Beta: 03/04/2019
- fixed bugs,
- changed widget selection window,
- now you can open wfz by Verge, but you will need to edit the coordinates manually,
- improved program stability,
- easter eggs added.
Click to expand...
Click to collapse
I love easter eggs
skylow said:
the lo fi background is not shown on the watch. I'm sure it depends on the number of colours, used for the lo fi background.
Photoshop says you are using 9 colours but amazfit can only show 8 colour pics as lo fi background.
Click to expand...
Click to collapse
That's right, 8 primary colors and 1 transparent. The clock understands this, but just in case for the background I will make a palette of 8 colors.
Well done!
Do you plan to add a configurable watchface with the ability to change backgrounds, widgets, etc.?
In LowFi I use a font with "LCD shadow". On the watch you can see this "shadow" but in your application he disappears.
Could you separate the digits individually?
antotamara said:
Could you separate the digits individually?
Click to expand...
Click to collapse
Make it possible to upload images individually?