【发布时间】:2018-05-10 09:42:20
【问题描述】:
我的整个 android 应用程序使用纵向屏幕方向。这就是我在应用程序清单中为我的 Activity 设置 android:screenOrientation="portrait" 的原因。但现在我要实现 YouTubePlayerFragment。
我认为在这个片段中旋转屏幕是非常必要的,这样用户就可以全屏观看 YouTube。
这是否可以在清单中继续使用 screenOrientation="portrait" 并在一个片段中以某种方式覆盖它?有没有不需要为每个片段设置 screenOrientation 的解决方案?
【问题讨论】:
标签: android youtube screen-orientation