切换到风景模式,即使已停用
当设置中禁用横向模式(或 TouchWiz 和 HTC 设备上的通知栏)时,当用户旋转设备时如何应用它? 我知道可以读取加速度计传感器并编写一个自己的例程来设置它,但我敢打赌有一种更简单的方法,并且不需要重新发明轮子。
感谢提示或建议。
谢谢
When Landscape Mode is deactivated in the Settings (Or Notification Bar on TouchWiz and HTC devices), how to apply it when the user rotates the device?
I know it's possible to read the accelerometer sensors and write an own routine which sets it, but i bet there is an easier way and no need to reinvent the wheel.
Tips or advices are appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个简单的方法 - 但它已被用户停用:)
如果您的应用程序仅具有横向方向,则不必担心当前的手机方向。如果您的应用程序在两个方向上都可以工作,您不应该切换方向,因为用户特别说“我不想改变方向!”关闭此设置。
There is simple way - but it was deactivated by user :)
If you have app that has only landscape orientation you should not worry about current phone orientation. If your app works in both orientations you should not switch orientation, because user specially says "I don't want orientation change!" by switching this setting off.