Answers for "how to fix portrait orientation for android apps"

1

how to fix portrait orientation for android apps

<activity
            android:name="com.example.demo_spinner.MainActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait" >
</activity>

<!-- Do this in AndroidMainifest.xml-->

<!--Additionaly, you can also use screenOrientation="sensorPortrait" 
if you want to enable rotation by 180 degrees.-->

<!--android:screenOrientation="nosensor"
This will lead to forcing your app to portrait on most phones
and landscape on tablets. -->
Posted by: Guest on May-27-2020

Code answers related to "how to fix portrait orientation for android apps"

Browse Popular Code Answers by Language