Android 13 启动的时候会显示一下logo,很不友好

在Android13 app启动的时候,会弹出一下logo,

去掉 的 代码:

给splash配置一个主题:

复制代码
 <activity
            android:name=".MainActivity"
            android:theme="@style/Theme.Splash"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

主题里面配置相应的设置

复制代码
  <style name="Theme.Splash" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="android:windowFullscreen">true</item>
        <item name="android:windowSplashScreenAnimatedIcon" tools:ignore="NewApi">@drawable/splash
        </item>
        <item name="android:windowBackground">@mipmap/splash</item>
        <item name="android:windowIsTranslucent">true</item>  <!-- 透明背景 -->
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowContentOverlay">@null</item>


    </style>
复制代码
<item name="android:windowSplashScreenAnimatedIcon" tools:ignore="NewApi">@drawable/splash
</item>
<item name="android:windowBackground">@mipmap/splash</item>

这两个配置颜色的话要一致,图片的话也要一致,

问题解决

相关推荐
liang_jy21 小时前
Android SparseArray
android·源码
liang_jy1 天前
Activity 启动流程扩展篇(一)—— startActivityInner 任务决策全解析
android·源码
NPE~1 天前
[App逆向]脱壳实战
android·教程·逆向·android逆向·逆向分析
木易 士心1 天前
别再只会用 drawCircle 了!一文搞懂 Android Canvas 底层机制
android
AtOR CUES1 天前
MySQL——表操作及查询
android·mysql·adb
怣疯knight1 天前
安卓App无法增加自定义图片作为图标功能
android
WaiSaa1 天前
Ubuntu配置Git免密操作
git·ubuntu·gitee
砍材农夫1 天前
借助gitee仓库构建私有图床
gitee
jinanwuhuaguo1 天前
OpenClaw联邦之心——从孤岛记忆到硅基集体潜意识的拓扑学革命(第二十三篇)
android·人工智能·kotlin·拓扑学·openclaw
Gary Studio1 天前
安卓HAL C++基础-命名域
android