Pārlūkot izejas kodu

Fix stretched splash screen icon on older versions of Android

arkon 5 gadi atpakaļ
vecāks
revīzija
dc93368e03
1 mainītis faili ar 5 papildinājumiem un 3 dzēšanām
  1. 5 3
      app/src/main/res/drawable/splash_background.xml

+ 5 - 3
app/src/main/res/drawable/splash_background.xml

@@ -3,8 +3,10 @@
 
     <item android:drawable="@color/colorSplash" />
 
-    <item
-        android:drawable="@drawable/splash_icon"
-        android:gravity="center" />
+    <item>
+        <bitmap
+            android:gravity="center"
+            android:src="@drawable/splash_icon" />
+    </item>
 
 </layer-list>