/** * 显示键盘 */ protected void showKeyBoard() { InputMethodManager imm = (InputMethodManager) getActivity().getApplicationContext().getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput(0, InputMethod.SHOW_FORCED); }