FORUMS

What Do You Think About Fingerprint Scanners?

More and more phones are featuring fingerprint scanners, and with many promising … more

What’s Next for Samsung and Its Flagships?

If we were to say that the Galaxy S6 was a leap of faith made by Samsung, we … more

The Ultimate Showcase of dBrand Skins

In the search for ways to protect, accessorize, and personalize; a user has many options. One … more

Huawei’s Rapid Rise to Third Place in the Smartphone Race

Huawei has quickly grown to become one of the world’s biggest … more

[TUT]Make your own watchface

623 posts
Thanks Meter: 919
 
Post Reply Subscribe to Thread Email Thread
Attached Files
File Type: zip ClockWidgets.zip - [Click for QR Code] (85.7 KB, 2447 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 ]
 
 
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 ]
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  
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  
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 ]
4th July 2014, 05:41 AM |#7  
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 ]
4th July 2014, 03:08 PM |#9  
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 ]
6th July 2014, 01:16 AM |#10  
Mohamed Hashem's Avatar
Senior Member
Flag Zagazig
Thanks Meter: 796
 
More
I'm glad, Great work
9th July 2014, 10:10 AM |#11  
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 ]

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes