Using MonoDroid, how can I open a dialog when an EditText field gains focus?
Posted
by
Kiada
on Stack Overflow
See other posts from Stack Overflow
or by Kiada
Published on 2012-09-02T15:14:31Z
Indexed on
2012/09/02
15:38 UTC
Read the original article
Hit count: 183
I made the EditText clickable but you have to "double-click" to bring the dialog box up, which isn't really desired behaviour. How can I bring the dialog box up when the EditText is clicked / gains focus?
Bonus points for including a way to stop the keyboard popping up :)
_createProfileDobEdtTxt.Clickable = true;
_createProfileDobEdtTxt.Click += (sender, e) =>
{
ShowDialog(DATE_OF_BIRTH_DIALOG);
};
© Stack Overflow or respective owner