当某人点击TextView字段时,如何显示键盘?
void button_Click(object sender, EventArgs e)
{
InputMethodManager imm = (InputMethodManager)GetSystemService(InputMethodService);
imm.ToggleSoftInput(ShowSoftInputFlags.Forced,HideSoftInputFlags.None );
}
在TextView点击事件中使用此代码
InputMethodManager imm=(InputMethodManager)getSystemService(yourActivity.this.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);