Code for DigitalClock | AnalogClock in android
XML layout resource definition for a DigitalClock control:
<DigitalClock
android:id=”@+id/DigitalClock01”
android:layout_width=”wrap_content”
android:layout_height=”wrap_content” />
AnalogClock:
A is a dial-based clock with a basic clock face with two hands, one for the minute and one for the hour.It is a TextView, so anything you can do with a TextView you can do with this control, except change its text.
XML layout resource definition for a AnalogClock control:
<AnalogClock
android:id=”@+id/AnalogClock01”
android:layout_width=”wrap_content”
android:layout_height=”wrap_content” />
It can show only the current time in the current time zone of the device.
Neither of these clock controls accepts a different time or a static time to display.




0 comments:
Post a Comment