I'm trying to build a TimePickerDialog but unfortunately the Time Picker that comes up is extremely cumbersome to Use :
Is there any way to build a timepicker like the old ones that Android use to have like below :
My code is as follows :
ButtonTime.Click += delegate
{
ShowTimePickerDialog();
};
void ShowTimePickerDialog()
{
var dialog = new TimePickerDialogFragment(this, hour, minute, this);
dialog.Show(FragmentManager, null);
}
adding new xml style
<?xml version="1.0" encoding="utf-8" ?>
<resources>
<style name="SpinnerTimePicker" parent="android:Widget.Material.Light.TimePicker">
<item name="android:timePickerMode">spinner</item>
</style>
<style name="ClockTimePicker" parent="android:Widget.Material.Light.TimePicker">
<item name="android:timePickerMode">clock</item>
</style>
</resources>
than set the timepicker style to SpinnerTimePicker in MainTheme
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>