在AndroidManifest.xml配置文件中设置相对应的Activity就可以
Activity一一对应
android:screenOrientation="portrait"
当然,也可以设置只能横屏什么的。