android:screenOrientation="portrait" android:windowSoftInputMode="adjustPan"1.screenOrientation表示一些横纵向配置 portrait:纵向显示 参考文档:https://www.cnblogs.com/snowberg/archive/2012/07/15/2618908.html 2.windowSoftInputMode表示软键盘交互 adjustPan:当前窗口的内容将自动移动以便当前焦点从不被键盘覆盖和用户能总是看到输入内容的部分 参考文档:http://blog.csdn.net/twoicewoo/article/details/7384398