Android 后端纵向
我尝试更改 Android 后端的方向,但它没有改变 根本.. 我正在尝试添加 :screenOrientation="portrait" 到我的 manifest.xml 但没有结果...
有什么建议如何将我的方向更改为纵向吗?因为在 默认它是风景...
迈克尔贝恩帮助我在谷歌组:
您想要将以下内容添加到 android/src/.../YourGameActivity.java:
@Override public boolean usePortraitOrientation () {
return true;
}
谢谢 Michael
I try to change orientation for android backend but it doesn't change
at all..
I am trying with adding :screenOrientation="portrait" to my
manifest.xml but with no resoult...
Any suggestion how to change my orientation to portrait? Becouse in
default it is landscape...
Michael Bayne helped me on google goups with:
You want to add the following to android/src/.../YourGameActivity.java:
@Override public boolean usePortraitOrientation () {
return true;
}
Thanks Michael
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试在清单中设置它,如下所示
android:label="@string/app_name" android:screenOrientation="portrait"
Try setting it in your manifest like this
android:label="@string/app_name" android:screenOrientation="portrait"