【发布时间】:2022-10-05 14:40:33
【问题描述】:
奇怪的是,我的 android 应用程序启动画面在我的 android 模拟器上是白色的,但在我的个人手机上加载 APK 时是黑色的。
当我去调查时,我在 Android 清单中看到了这一点:
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
当我转到 res drawable 时,我看到一个名为 launch_background.xml 的文件,这听起来很有希望。
但是当我查看它时,它显示:
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
这很奇怪,因为它说它是白色的。所以我不确定为什么我的手机会黑屏。我想让每个人的初始屏幕背景颜色为白色。
【问题讨论】:
标签: android flutter android-manifest android-splashscreen