Window win = getWindow();
WindowManager.LayoutParams params = win.getAttributes();
win.setSoftInputMode(params.SOFT_INPUT_ADJUST_NOTHING);
只需要加上如上代码即可
Window win = getWindow();
WindowManager.LayoutParams params = win.getAttributes();
win.setSoftInputMode(params.SOFT_INPUT_ADJUST_NOTHING);
只需要加上如上代码即可
转载于:https://www.cnblogs.com/DomoYao/p/Android.html