public static AdjustDialog newInstance(TextView textView, SeekBar seekBar, int maxValue, bool isType = false) { AdjustDialog numdialog = new AdjustDialog(); numdialog.textView = textView; numdialog.seekBar = seekBar; numdialog.maxValue = maxValue; numdialog.isType = isType; return(numdialog); }
void SetupAdjustPicker(TextView textView, SeekBar seekBar, int maxValue) { textView.Touch += (object sender, View.TouchEventArgs e) => { if (e.Event.Action == MotionEventActions.Down) { AdjustDialog myDiag = AdjustDialog.newInstance((TextView)sender, seekBar, maxValue); myDiag.Show(FragmentManager, "Diag"); } }; }