acitvitygroup edittext 软盘弹出时 底部菜单挤压到上面的有关问题
acitvitygroup edittext 软盘弹出时 底部菜单挤压到上面的问题
userName = (EditText) layout.findViewById(R.id.username);
//TODO 显示软盘 使用EditText的getContext
InputMethodManager imm = (InputMethodManager)userName.getContext(). getSystemService(Context.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);