如果当前软键盘无论是否已经显示,都要显示,则使用如下方式:
InputMethodManager imm = (InputMethodManager)Context.GetSystemService(Context.InputMethodService);
imm.ToggleSoftInput(0, HideSoftInputFlags.ImplicitOnly);
如果当前软键盘无论是否已经显示,都要显示,则使用如下方式:
InputMethodManager imm = (InputMethodManager)Context.GetSystemService(Context.InputMethodService);
imm.ToggleSoftInput(0, HideSoftInputFlags.ImplicitOnly);