How can I get the keyboard to show, when someone clicks on a TextView field?
Asked
Active
Viewed 1,933 times
2 Answers
4
void button_Click(object sender, EventArgs e)
{
InputMethodManager imm = (InputMethodManager)GetSystemService(InputMethodService);
imm.ToggleSoftInput(ShowSoftInputFlags.Forced,HideSoftInputFlags.None );
}

Saeed Hashemi
- 984
- 4
- 22
- 55
2
Use this on textview click
InputMethodManager imm=(InputMethodManager)getSystemService(yourActivity.this.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);

maninder singh
- 1,286
- 13
- 16