private void SetupPicker(EditText textView, string format, string title = "") { int dcount = 0; if (format == Constants.PICKER_TIME) { dcount = 3; } else if (format == Constants.PICKER_PACE || format == Constants.PICKER_HR) { dcount = 2; } else { dcount = 1; } textView.Touch += (object sender, View.TouchEventArgs e) => { if (e.Event.Action == MotionEventActions.Down) { TimeFormatDialog myDiag = TimeFormatDialog.newInstance((EditText)sender, dcount, format, title); myDiag.Show(FragmentManager, "Diag"); } }; }
private void SetupAdjustPicker(EditText textView, SeekBar seekBar, int maxValue) { textView.Touch += (object sender, View.TouchEventArgs e) => { if (e.Event.Action == MotionEventActions.Down) { TimeFormatDialog myDiag = TimeFormatDialog.newInstance((EditText)sender, 1, "adjust", ""); myDiag.Show(FragmentManager, "Diag"); } }; }