Просмотр исходного кода

修改android文件-阻止转屏

daxu0403 7 лет назад
Родитель
Сommit
98db6e9444

+ 1 - 0
android/app/src/main/AndroidManifest.xml

@@ -34,6 +34,7 @@
             android:theme="@style/LaunchTheme"
             android:theme="@style/LaunchTheme"
             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
             android:hardwareAccelerated="true"
             android:hardwareAccelerated="true"
+            android:screenOrientation="portrait"
             android:windowSoftInputMode="adjustResize">
             android:windowSoftInputMode="adjustResize">
             <!-- This keeps the window background of the activity showing
             <!-- This keeps the window background of the activity showing
                  until Flutter renders its first frame. It can be removed if
                  until Flutter renders its first frame. It can be removed if

BIN
android/app/src/main/res/mipmap-hdpi/launch_image.png


BIN
android/app/src/main/res/mipmap-mdpi/launch_image.png


BIN
android/app/src/main/res/mipmap-xhdpi/launch_image.png


BIN
android/app/src/main/res/mipmap-xxhdpi/launch_image.png


BIN
android/app/src/main/res/mipmap-xxxhdpi/launch_image.png