Page 53 - Xamarin Android Application Development
P. 53

Dialogs and Toast                                                                           49










































               Time Picker Dialog


               TimePickerDialog is almost similar in using as using DatePickerDialog. The following example
               would help you using it.

               As you see below; we have a button and a TextView in the layout. The button is to bring up the
               dialog and text view is where the value would be set.





















               Now similar to the Previous DatePickerDialog example, we would have an integer variable for Id,
               an integer variable for hour and one for minute, then TextView variable. Instead of taking hour
   48   49   50   51   52   53   54   55   56   57   58