tek şey bu kullanmaktır:Uygulamanın sadece portre olarak nasıl ayarlanacağı? Bulabileceğim
android:configChanges="orientation"
android:screenOrientation="portrait"
ama normal olarak kalır. Benim tezahür:
?xml version="1.0" encoding="utf-8"?>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:configChanges="orientation"
android:screenOrientation="portrait"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>