AndroidManifest.xml里面的activity设置android:windowSoftInputMode="adjustPan" 
参考:http://www.apkbus.com/android-59367-1-1.html

解决方案 »

  1.   

    我做项目的时候也碰到过,比如使用Fragment的时候用户输入数据点击某操作后  隐藏当前页面,显示另一个界面,而输入法还在,我在代码中加入:
     final InputMethodManager inputMethodManager = ((InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE));
      inputMethodManager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(),                          InputMethodManager.HIDE_NOT_ALWAYS);
    就好了。不知道是不是这中情况,当然也可以在xml文件中设置