android - 强制 Activity 在 android 1.5 中横向运行 Activity

标签 android

我有一个处于纵向模式的应用程序。但是,我想以横向模式运行特定 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/

相关文章:

Android 数字文本字体。

Android:服务 'not yet bound' 但 onBind() 被调用?

android - 只有 "inner rounded corners"的形状

java - Android RestTemplate json反序列化

java - 如何使用 Glide 通过字节数组加载图像?

android - 长时间不活动后在 swapcursor 上获取空指针

android - 无法设置 textView1.setAutoLinkMask(0) - 它仍然可以点击

android - Android 和 OpenGL-ES 上的 FingerPaint

Android:具有语言支持的 Google Places API getAutocompletePredictions

android - 是否可以使用快捷方式启动服务?