Java 类android.view.inputmethod.InputMethod 实例源码
项目:qmui
文件:BaseFragment.java
/**
* 显示键盘
*/
protected void showKeyBoard() {
InputMethodManager imm = (InputMethodManager) getActivity().getApplicationContext().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(0, InputMethod.SHOW_FORCED);
}