Search code examples
androidclockpreset

android.widget.AnalogClock set time


Is there a way to have the android.widget.AnalogClock display a preset time?

I don't want to create a custom AnalogClock, I just want the regular one to display a time to my liking.


Solution

  • Sorry, the AnalogClock widget only displays the system time. You might be able to subclass it to have it pull another time, or you can always try cloning the code out of the open source project to create one that accepts a time.