What is DigitalClock | AnalogClock in android

Code for  DigitalClock | AnalogClock in android

A is a compact text display of the current time in standard numeric format based on the users’ settings. 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 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

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | Grocery Coupons