平板电脑上锁定横向方向 +当设备处于纵向 = 屏幕上可见旋转时活动开始
我有一个锁定方向的活动(OnCreate 中的 setRequestedOrientation)。它在手机上运行良好,在平板电脑上也几乎运行良好。
我遇到的问题是蜂窝平板电脑(摩托罗拉 xoom 和三星),当用户以纵向模式握住设备时启动活动时,该活动最初以纵向显示,然后在几分之一秒后旋转到横向。有什么办法可以阻止它发生吗?
I have an activity with locked orientation (setRequestedOrientation in OnCreate). It works fine on the phone and almost fine on the tablet.
The problem I have is with honeycomb tablets (motorola xoom and samsung), when activity is started when the user holds the device in portait mode, the activity is initially displayed in portait and then after a fraction of a second it rotates to landscape. Is there any way to stop it from happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试在AndroidManifest.xml中预设它:
Try to preset it in AndroidManifest.xml: