[英]android:screenOrientation=“portrait” is not working on one Chinese Pad
I have made app and set it to have portrait
orientation for main <activity>
in ActivityManifest.xml
. 我已经制作了应用程序,并将其设置为在
ActivityManifest.xml
主要<activity>
具有portrait
方向。 It is portrait
on all devices except one Chinese noname pad. 除一个中文noname pad以外,所有设备上的
portrait
均为portrait
。 There are other apps that handle orientation on that pad correctly. 还有其他应用程序可以正确处理该键盘上的方向。
I expect that in portrait orientation screen width is less then height. 我希望纵向屏幕的宽度小于高度。
My 2 questions are:- 我的两个问题是:
What is the best way to set orientation? 设置方向的最佳方法是什么? Do I have to check screen width/height and rotate screen accordingly?
我是否需要检查屏幕的宽度/高度并相应地旋转屏幕?
How widespread that orientation bug is? 该定位错误有多广泛?
ActivityManifest.xml
way is good enough. ActivityManifest.xml
方式就足够好了。 My buggy noname chinese pad is only device that I seen so far. 我的越野车Noname Chinese Pad是到目前为止我所看到的唯一设备。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.