| 12345678910111213141516171819202122232425262728 |
- <?xml version="1.0" encoding="utf-8"?>
- <resources>
- <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
- <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
- <!-- Show a splash screen on the activity. Automatically removed when
- the Flutter engine draws its first frame -->
- <item name="android:windowBackground">@drawable/launch_background</item>
- <item name="android:forceDarkAllowed">false</item>
- <item name="android:windowFullscreen">false</item>
- <item name="android:windowDrawsSystemBarBackgrounds">false</item>
- <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
- </style>
- <!-- Theme applied to the Android Window as soon as the process has started.
- This theme determines the color of the Android Window while your
- Flutter UI initializes, as well as behind your Flutter UI while its
- running.
- This Theme is only used starting with V2 of Flutter's Android embedding. -->
- <style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
- <!-- 设置窗口背景色为黑色,与 Flutter 暗色主题的 scaffoldBackgroundColor 一致 -->
- <!-- 解决软键盘收起时键盘区域短暂黑屏的问题 -->
- <item name="android:windowBackground">@android:color/black</item>
- <item name="android:forceDarkAllowed">false</item>
- <item name="android:windowFullscreen">false</item>
- <item name="android:windowDrawsSystemBarBackgrounds">false</item>
- <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
- </style>
- </resources>
|