1: PopupWindow中的设置
pop.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED);
pop.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
2:Activity中的设置
<activity android:name="com.wzh.sjsst.activity.ZxzxActivity" android:label="@string/title_activity_zxzx" android:theme="@style/bsbzAbtTheme" android:screenOrientation="portrait" android:windowSoftInputMode="adjustUnspecified|stateHidden" android:configChanges="keyboardHidden|orientation"
通过以上两个地方的设置就可以解决!