Ver código fonte

[feat]强制app竖屏

hezihao 1 ano atrás
pai
commit
a18de21c2f
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      android/app/src/main/AndroidManifest.xml

+ 3 - 2
android/app/src/main/AndroidManifest.xml

@@ -8,14 +8,15 @@
         android:allowBackup="false"
         android:allowBackup="false"
         android:icon="@mipmap/ic_launcher"
         android:icon="@mipmap/ic_launcher"
         android:label="追爱小键盘">
         android:label="追爱小键盘">
+
         <activity
         <activity
             android:name=".MainActivity"
             android:name=".MainActivity"
             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
             android:exported="true"
             android:exported="true"
             android:hardwareAccelerated="true"
             android:hardwareAccelerated="true"
             android:launchMode="singleTop"
             android:launchMode="singleTop"
+            android:screenOrientation="portrait"
             android:theme="@style/LaunchTheme"
             android:theme="@style/LaunchTheme"
-
             android:windowSoftInputMode="adjustResize">
             android:windowSoftInputMode="adjustResize">
             <!-- Specifies an Android theme to apply to this Activity as soon as
             <!-- Specifies an Android theme to apply to this Activity as soon as
                  the Android process has started. This theme is visible to the user
                  the Android process has started. This theme is visible to the user
@@ -30,7 +31,7 @@
             </intent-filter>
             </intent-filter>
 
 
         </activity>
         </activity>
-<!--        两个动画快速切换容易闪退-->
+        <!--        两个动画快速切换容易闪退-->
         <meta-data
         <meta-data
             android:name="io.flutter.embedding.android.EnableImpeller"
             android:name="io.flutter.embedding.android.EnableImpeller"
             android:value="false" />
             android:value="false" />