I'm using the fallowing xml as 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>
but width of the png(splash) is not fitting the screen width, it overflows if i set the gravity property or it stretches to whole screen if don't set the gravity, i dug up the whole stack overflow for 2 days. what am i doing wrong here
if you want to add image in the center