FORUMS
Remove All Ads from XDA

[TUT]Make your own watchface

627 posts
Thanks Meter: 963
 
Post Reply Subscribe to Thread Email Thread
Attached Files
File Type: zip ClockWidgets.zip - [Click for QR Code] (85.7 KB, 3619 views)
Last edited by naheel azawy; 23rd January 2015 at 07:28 PM.
The Following 49 Users Say Thank You to naheel azawy For This Useful Post: [ View ] Gift naheel azawy Ad-Free
 
 
1st July 2014, 10:52 PM |#2  
DeadlyDazza's Avatar
Senior Member
Thanks Meter: 89
 
More
You sir, are a legend.
The Following User Says Thank You to DeadlyDazza For This Useful Post: [ View ] Gift DeadlyDazza Ad-Free
2nd July 2014, 01:31 AM |#3  
Shawtyq's Avatar
Junior Member
Thanks Meter: 7
 
More
I love you!!!

Thanks so much
2nd July 2014, 02:17 AM |#4  
Senior Member
Thanks Meter: 148
 
Donate to Me
More
Dumb question - after you run the Android application via Eclipse and it installs the APK onto the phone, how do you view the watchface? Should it show as a new watchface clock in the customise watchface editor?

Edit: Answered my own question - yes
Last edited by julz; 2nd July 2014 at 02:20 AM.
2nd July 2014, 07:45 AM |#5  
Senior Member
Thanks Meter: 148
 
Donate to Me
More
Are you able to explain how to add a date to the analog clock (e.g. day of the month) and also maybe the month (e.g. Jul for July)

Thanks in advance!
2nd July 2014, 01:34 PM |#6  
Quote:
Originally Posted by julz

Are you able to explain how to add a date to the analog clock (e.g. day of the month) and also maybe the month (e.g. Jul for July)

Thanks in advance!

I will
The Following 2 Users Say Thank You to naheel azawy For This Useful Post: [ View ] Gift naheel azawy Ad-Free
4th July 2014, 05:41 AM |#7  
Senior Member
Thanks Meter: 148
 
Donate to Me
More
Quote:
Originally Posted by naheel azawy

I will

Hi Naheel,

I've tried adding the date but without any luck. Nothing is showing up on the watchface. Do I have to add some other code to include the new XML as part of the build? Will the date show above the watch background image or is there the chance that it is on the bottom layer? Also I'm guessing that the text will be white as per the sample code you posted. Any help is appreciated!
4th July 2014, 01:53 PM |#8  
Quote:
Originally Posted by julz

Hi Naheel,

I've tried adding the date but without any luck. Nothing is showing up on the watchface. Do I have to add some other code to include the new XML as part of the build? Will the date show above the watch background image or is there the chance that it is on the bottom layer? Also I'm guessing that the text will be white as per the sample code you posted. Any help is appreciated!

Sorry, I forget one last step.
edited
The Following 3 Users Say Thank You to naheel azawy For This Useful Post: [ View ] Gift naheel azawy Ad-Free
4th July 2014, 03:08 PM |#9  
Senior Member
Thanks Meter: 148
 
Donate to Me
More
Thumbs up
Quote:
Originally Posted by naheel azawy

Sorry, I forget one last step.
edited

Thanks mate! I'll give it a go!


EDIT: Awesome it works!! Thanks once again! Time to update my watchfaces to include dates
Last edited by julz; 4th July 2014 at 10:42 PM.
The Following User Says Thank You to julz For This Useful Post: [ View ] Gift julz Ad-Free
6th July 2014, 01:16 AM |#10  
Mohamed Hashem's Avatar
Senior Member
Thanks Meter: 801
 
More
I'm glad, Great work
9th July 2014, 10:10 AM |#11  
Senior Member
Thanks Meter: 148
 
Donate to Me
More
Prompt
I've been busy making new analog watchfaces and figured out how to offset the dials. Edit the code within \res\layout\clock_widget_analog.xml

How to offset dials

As an example the following code will use a square second hands PNG file, resize it to 45x45px and offset it 82px from the top and 70px from the left. It will continue to rotate around the centre of the PNG file (i.e. around pixel x=23,y=23)
Code:
<include layout="@layout/analog_clock_hand_seconds"
        android:gravity="left"
        android:layout_marginTop="82px"
        android:layout_marginLeft="70px"
        android:layout_width="45px"
        android:layout_height="45px" 
        />
The Following 2 Users Say Thank You to julz For This Useful Post: [ View ] Gift julz Ad-Free

Read More
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes