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>

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

问题解决

相关推荐
好的佩奇4 小时前
Dart 之扩展方法
android·flutter·dart
三少爷的鞋6 小时前
换个思路理解:非阻塞挂起
android
好的佩奇7 小时前
蓝牙之经典蓝牙
android·flutter·蓝牙
传奇开心果编程9 小时前
【Flutter踩坑排雷】第19课:路由硬编码坑|字符串路由书写错误,页面跳转失败排查
android·flutter·ios·移动开发·跨平台·ui框架·声明式ui
微小的鱼12 小时前
Linux的渲染与显示系统链路
android·java·linux
道尔柯南1 天前
C++ string 类详解:从常用接口到深拷贝,彻底掌握字符串处理
android·java·c++
7177771 天前
2026年测试管理工具选型指南:从12款产品对比看Gitee的适用边界
gitee
唐诺1 天前
5、Android JNI 动态注册中的“签名“详解
android·jni
zhaoshuzhaoshu1 天前
Android 系统启动与调试中的日志抓取方式全解析
android
雨声不在1 天前
android 动画掉帧
android