在配置文件中直接设置 android:screenOrientation="landscape" android:screenOrientation="portrait" //第一个为横屏显示 //第二个为纵屏显示