Reputation: 2325
I am getting the new timepicker using the support library. But I need to show the Holo Style time picker with 30 min time interval.
I am using the following code:
public void showTimePickerDialog(Calendar calendar) {
selectedCalendarInstance = calendar;
TimePickerDialog timePickerDialog = new TimePickerDialog(activity, R.style.DialogTheme, this, 10, 0, false);
timePickerDialog.setTitle(null);
timePickerDialog.show();
}
But i need the following style of timepicker
Please help!
Thanks in advance!
Upvotes: 2
Views: 2404
Reputation: 3505
I would go for a custom dialog with TimePicker
as
<TimePicker
android:timePickerMode="spinner"
...
...
...
/>
Upvotes: 7