senzacionale
senzacionale

Reputation: 20906

Android show two TimePickerDialog when pressing a button

is it possible to show two TimePickerDialog when clicking on a button. I want to show TimePickerDialog for FROM label and one TimePickerDialog for TO label.

I am creating application for football.

I found this howto: http://www.botskool.com/geeks/how-create-time-picker-dialog-selecting-time-android

but is only for one TimePickerDialog

Upvotes: 0

Views: 79

Answers (1)

Gaurav Arora
Gaurav Arora

Reputation: 1815

  • Create a layout with Two TimePicker widgets
  • Use this layout with dialog.
  • Add appropriate validations and you should be able to achieve what you need.

Upvotes: 1

Related Questions