调用 open(null);


/***当前弹出则关闭*否则弹出*@paramv*/@SuppressWarnings("static-access")publicvoidopen(Viewv){InputMethodManagerinputMethodManager=(InputMethodManager)getSystemService(getApplicationContext().INPUT_METHOD_SERVICE);booleanisOpen=inputMethodManager.isActive();//isOpen若返回true,则表示输入法打开if(!isOpen){inputMethodManager.toggleSoftInput(0,InputMethodManager.SHOW_FORCED);}else{inputMethodManager.toggleSoftInput(0,InputMethodManager.SHOW_FORCED);}}