简体   繁体   中英

Android backend with portrait orientation

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

Try setting it in your manifest like this

android:label="@string/app_name" android:screenOrientation="portrait"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM