Would you like to add a blinking element to your watch design? You can, you know, and it’s not all that hard. You just have to mess with time.
You ever notice that the colon in all the digital watches is blinking? Well, it’s just an image of two dots. It could be an image of anything. The hours and minutes on either side could be anything as well, like transparent. So what if you have a blink.xml file that looks like this:<?xml version="1.0" encoding="utf-8"?> blank_num_0.png blank_num_1.png blank_num_2.png blank_num_3.png blank_num_4.png blank_num_5.png blank_num_6.png blank_num_7.png blank_num_8.png blank_num_9.png blank_num_colon_image.png
Where all the images 0 - 9 are transparent and the last one, the colon_image, is the element you want to blink? You toss a drawable into your clock_skin.xml at the appropriate level with X and Y positioning, as desired that looks like this:
<drawable> <name>blink.xml</name> <arraytype>6</arraytype> </drawable>
Bingo! Or should I say BLING
Attached is some sample code along with the invisible number files and a big blue dot for the blinking image. Load it up, test it out, and then show us something cool.
You can probably get away with one blinky element on an analog watch, cause the silly thing blinks at the colon rate and wold be in sync with a digital watch’s colon blink – unless that’s the effect your are going for. Surprise us!