The Analog Clock and Digital Clock Controls

Android also offers an AnalogClock and a DigitalClock (see Figure 4-10).

lob q sudĀ« 2:42 am i

Common Controls

2:51:04 AM

\ 1 ;\

*

' 1

\

Figure 4-10. Using the AnalogClock and DigitalClock

As shown, the analog clock in Android is a two-handed clock, one hand for the hour indicator and the other hand for the minute indicator. The digital clock supports seconds in addition to hours and minutes.

These two controls are not that interesting because they don't let you modify the date or time. In other words, they are merely clocks whose only capability is to display the current time. Thus, if you want to change the date or time, you'll need to stick to the DatePicker / TimePicker or DatePickerDialog/TimePickerDialog.

0 0

Post a comment