private void TimeButton_Click(object sender, System.EventArgs e)
        {
            Calendar now = Calendar.Instance;
            var      tpd = new MaterialTimePicker.TimePickerDialog();

            tpd.Initialize(
                this,
                now.Get(CalendarField.HourOfDay),
                now.Get(CalendarField.Minute),
                now.Get(CalendarField.Second),
                mode24Hours.Checked
                );
            tpd.SetThemeDark(modeDarkTime.Checked);
            tpd.Vibrate(vibrateTime.Checked);
            tpd.DismissOnPause(dismissTime.Checked);
            tpd.EnableSeconds(enableSeconds.Checked);
            tpd.Version = showVersion2.Checked ? MaterialTimePicker.TimePickerDialog.AppVersion.Version2 : MaterialTimePicker.TimePickerDialog.AppVersion.Version1;
            if (modeCustomAccentTime.Checked)
            {
                tpd.AccentColor = Color.ParseColor("#9C27B0");
            }
            if (titleTime.Checked)
            {
                tpd.Title = "TimePicker Title";
            }
            if (limitSelectableTimes.Checked)
            {
                tpd.SetTimeInterval(3, 5, 10);
            }

            tpd.Show(FragmentManager, "Timepickerdialog");
        }
        public void OnTimeSet(MaterialTimePicker.TimePickerDialog view, int hourOfDay, int minute, int second)
        {
            string hourString   = hourOfDay < 10 ? "0" + hourOfDay : "" + hourOfDay;
            string minuteString = minute < 10 ? "0" + minute : "" + minute;
            string secondString = second < 10 ? "0" + second : "" + second;

            timeTextView.Text = "You picked the following time: " + hourString + "h" + minuteString + "m" + secondString + "s";
        }