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>

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

问题解决

相关推荐
小程故事多_809 小时前
从 Tokenizer 到 Next Token,穿透数据流,完整理解 Transformer 底层逻辑
android·深度学习·transformer
三少爷的鞋12 小时前
Android 协程实践:为什么不应将 `supervisorScope` 作为常规方案
android
承渊政道13 小时前
【从零开始大模型开发与微调:基于PyTorch与ChatGLM】(从ChatGLM本地化到LoRA、PEFT的高级微调)
android·人工智能·pytorch·chatglm·本地化部署·大模型开发与微调
2601_9628857215 小时前
如何用 Python 判断一只股票“追涨”还是“抄底”更有效?
android·开发语言·python
素师良码15 小时前
第10篇:屏ESD Check内核逻辑驱动代码完整拆解
android
高晶15 小时前
Android 短信收发模块从零到实战:权限配置、界面设计、发送接收与兼容性适配全攻略
android·程序员
随遇丿而安15 小时前
第18周:ViewModel 基础功能 + 架构优化
android
问心无愧051318 小时前
[GXYCTF2019]Ping Ping Ping
android·笔记
事圆则缓18 小时前
Kotlin 异步与并发:从一次搜索请求走到状态流
android·开发语言·kotlin
帅得不敢出门19 小时前
Android Framework定制卸载确认窗口
android