我有一个处于纵向模式的应用程序。但是,我想以横向模式运行特定 Activity 。我尝试了以下但没有成功。
1. android:screenOrientation="landscape" in AndroidManifest.xml
2. this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in activity requiring landscape mode
如指定here .请帮忙。 谢谢
最佳答案
the question you linked to 中提供的 list 解决方案绝对有效。 Here is a sample project使用 android:screenOrientation="landscape"
。
关于android - 强制 Activity 在 android 1.5 中横向运行 Activity ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3422801/