xamarinxamarin.androidtimepickerdialog

TimePicker with Spinners?


I'm trying to build a TimePickerDialog but unfortunately the Time Picker that comes up is extremely cumbersome to Use :

enter image description here

Is there any way to build a timepicker like the old ones that Android use to have like below :

enter image description here

My code is as follows :

    ButtonTime.Click += delegate
    {
        ShowTimePickerDialog();
    };

    void ShowTimePickerDialog()
    {
        var dialog = new TimePickerDialogFragment(this, hour, minute, this);

        dialog.Show(FragmentManager, null);
    }

Solution

  • I would say use the Holo theme. I refer to following link on stackoverflow which you might find usefull.