feat: 添加启动屏幕图像和主题样式;优化 H5 壳的封面隐藏逻辑
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
BIN
android/app/src/main/res/drawable-nodpi/splash_content.png
Normal file
BIN
android/app/src/main/res/drawable-nodpi/splash_content.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 72 KiB |
@@ -9,4 +9,12 @@
|
||||
android:endColor="#FFFFFF" />
|
||||
</shape>
|
||||
</item>
|
||||
<item
|
||||
android:width="220dp"
|
||||
android:height="260dp"
|
||||
android:gravity="center">
|
||||
<bitmap
|
||||
android:gravity="fill"
|
||||
android:src="@drawable/splash_content" />
|
||||
</item>
|
||||
</layer-list>
|
||||
|
||||
@@ -9,4 +9,12 @@
|
||||
android:endColor="#FFFFFF" />
|
||||
</shape>
|
||||
</item>
|
||||
<item
|
||||
android:width="220dp"
|
||||
android:height="260dp"
|
||||
android:gravity="center">
|
||||
<bitmap
|
||||
android:gravity="fill"
|
||||
android:src="@drawable/splash_content" />
|
||||
</item>
|
||||
</layer-list>
|
||||
|
||||
13
android/app/src/main/res/values-night-v31/styles.xml
Normal file
13
android/app/src/main/res/values-night-v31/styles.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="LaunchTheme" parent="@android:style/Theme.Material.Light.NoActionBar">
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
<item name="android:windowSplashScreenBackground">#F8FBFF</item>
|
||||
<item name="android:windowSplashScreenAnimatedIcon">@drawable/splash_android12_icon</item>
|
||||
<item name="android:windowSplashScreenIconBackgroundColor">#F8FBFF</item>
|
||||
</style>
|
||||
|
||||
<style name="NormalTheme" parent="@android:style/Theme.Material.Light.NoActionBar">
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?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">
|
||||
<style name="LaunchTheme" parent="@android:style/Theme.Light.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>
|
||||
@@ -12,7 +12,7 @@
|
||||
running.
|
||||
|
||||
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
||||
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
13
android/app/src/main/res/values-v31/styles.xml
Normal file
13
android/app/src/main/res/values-v31/styles.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="LaunchTheme" parent="@android:style/Theme.Material.Light.NoActionBar">
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
<item name="android:windowSplashScreenBackground">#F8FBFF</item>
|
||||
<item name="android:windowSplashScreenAnimatedIcon">@drawable/splash_android12_icon</item>
|
||||
<item name="android:windowSplashScreenIconBackgroundColor">#F8FBFF</item>
|
||||
</style>
|
||||
|
||||
<style name="NormalTheme" parent="@android:style/Theme.Material.Light.NoActionBar">
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user