Skip to content

Commit 9a3ecee

Browse files
committed
剔除 Android 12 SplashScreen 特性自带的图标显示
1 parent b2f471e commit 9a3ecee

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<!-- 适配 Android 12 SplashScreen 特性 -->
5+
<style name="SplashTheme" parent="FullScreenTheme">
6+
<!-- https://www.jianshu.com/p/d0d907754603 -->
7+
<item name="android:windowIsTranslucent">false</item>
8+
<item name="android:windowDisablePreview">true</item>
9+
<!-- 启动画面背景颜色 -->
10+
<item name="android:windowSplashScreenBackground">@color/transparent</item>
11+
<!-- 启动画面中间显示的图标,默认使用应用图标 -->
12+
<item name="android:windowSplashScreenIconBackgroundColor">@color/transparent</item>
13+
<!-- 启动画面中间显示的图标的背景,如果图标背景不透明则无效 -->
14+
<item name="android:windowSplashScreenAnimatedIcon">@color/transparent</item>
15+
<!-- 启动画面启动画面底部的图片,可以使用品牌的 logo -->
16+
<item name="android:windowSplashScreenBrandingImage">@color/transparent</item>
17+
</style>
18+
19+
</resources>

0 commit comments

Comments
 (0)