SzewskiJanusz SzewskiJanusz - 3 years ago 249
Java Question

Java libgdx - set orientation per screen

I have two screens: Menu and Game. How can I set portrait mode for Menu and

landscape
mode for Game in
libGdx
?

Answer Source

Setting the android:screenOrientation="portrait" or android:screenOrientation="landscape" in Manifest Android

    <activity android:name=".MenuActivity"
        android:label="@string/app_name"
        android:screenOrientation="portrait" />

    <activity android:name=".GameActivity"
        android:label="@string/app_name"
        android:screenOrientation="landscape" />
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download