Explorar o código

Fix stretched splash screen icon on older versions of Android

arkon %!s(int64=5) %!d(string=hai) anos
pai
achega
dc93368e03
Modificáronse 1 ficheiros con 5 adicións e 3 borrados
  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>