Android Studio for Mac:使用原始彩色图像作为启动画面

Android Studio for Mac: Use original colour image for splash screen

我有一张多色图像,希望在初始屏幕上使用。我正在使用指南 from here,它需要在 AppTheme.Launcher style 下指定图像,并使用 item android:windowBackground 通过 [=16] 指定图像名称=]

我对如何将图像实际添加到项目感到困惑。到目前为止,我一直在使用菜单操作 new -> Image Asset 添加图像,这会使颜色变平,而且似乎没有按原样导入的选项。

我已将图像拖放到 Android Studio 中的 drawable 文件夹中,这会添加图像,但我无法使用 Drawable/SplashIcon.

引用它

这是我的:

如何引用我的图片?

好像是文件名的问题。文件名必须使用小写字母和下划线,其他不能。

因此,我拖放了名称为 splash_icon.png 的图像,它现在出现在 @drawable/...

我现在也按照建议使用不同的像素密度。