我正在使用闲置的 xml 作为 splashScreen
<?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>
<bitmap android:gravity="center" android:src="@drawable/splash" />
</item>
</layer-list>
但是 png(splash)的宽度不适合屏幕宽度,如果我设置了重力属性,它会溢出,或者如果不设置重力,它会延伸到整个屏幕,我挖了整个堆栈溢出 2 天。我在这里做错了什么