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>

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

问题解决

相关推荐
林北北的霸霸2 小时前
django初识与安装
android·mysql·adb
Java 码农4 小时前
MySQL EXPLAIN 详解与优化指南
android·mysql·adb
QT 小鲜肉6 小时前
【Git、GitHub、Gitee】按功能分类汇总Git常用命令详解(超详细)
c语言·网络·c++·git·qt·gitee·github
stevenzqzq8 小时前
Android Hilt 入门教程_传统写法和Hilt写法的比较
android
wuwu_q8 小时前
用通俗易懂方式,详细讲讲 Kotlin Flow 中的 map 操作符
android·开发语言·kotlin
_李小白9 小时前
【Android FrameWork】第五天:init加载RC文件
android
2501_916007479 小时前
手机使用过的痕迹能查到吗?完整查询指南与步骤
android·ios·智能手机·小程序·uni-app·iphone·webview
黄毛火烧雪下10 小时前
React Native (RN)项目在web、Android和IOS上运行
android·前端·react native
下位子10 小时前
『OpenGL学习滤镜相机』- Day7: FBO(帧缓冲对象)
android·opengl
從南走到北10 小时前
JAVA国际版同城外卖跑腿团购到店跑腿多合一APP系统源码支持Android+IOS+H5
android·java·ios·微信小程序·小程序