引用:
using Android.Views.InputMethods;
代码:
//隐藏键盘
InputMethodManager imm = (InputMethodManager)this.GetSystemService(Context.InputMethodService);
if (imm != null)
{
imm.HideSoftInputFromWindow(this.Window.DecorView.WindowToken, ); }
引用:
using Android.Views.InputMethods;
代码:
//隐藏键盘
InputMethodManager imm = (InputMethodManager)this.GetSystemService(Context.InputMethodService);
if (imm != null)
{
imm.HideSoftInputFromWindow(this.Window.DecorView.WindowToken, ); }