how to set up portrait view in android studio code example
Example: only portrait mode android studio
<activity android:name=".YourActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"/>
<activity android:name=".YourActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"/>