5
如何在有人單擊TextView字段時讓鍵盤顯示?在Mono上單擊TextView時顯示鍵盤
如何在有人單擊TextView字段時讓鍵盤顯示?在Mono上單擊TextView時顯示鍵盤
使用此上TextView的點擊
InputMethodManager imm=(InputMethodManager)getSystemService(yourActivity.this.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
void button_Click(object sender, EventArgs e)
{
InputMethodManager imm = (InputMethodManager)GetSystemService(InputMethodService);
imm.ToggleSoftInput(ShowSoftInputFlags.Forced,HideSoftInputFlags.None);
}