title: Splash Screen in Android is stretched
body: <p>I added a splash screen that will be displayed, but it is always stretched to the edge. I want to clip it if the screen doesn't fit.</p>
  <p>Launch Screen Xml:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;layer-list xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
     &lt;item&gt;
          &lt;bitmap xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
              android:gravity=&quot;fill|clip_horizontal&quot;
              android:src=&quot;@drawable/splash_screen&quot;/&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  <p>styles.xml</p>
  <pre><code>&lt;resources&gt;
      &lt;style name=&quot;AppTheme&quot; parent=&quot;Theme.AppCompat.DayNight.NoActionBar&quot;&gt;
          &lt;item name=&quot;android:editTextBackground&quot;&gt;@drawable/rn_edit_text_material&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name=&quot;SplashTheme&quot; parent=&quot;AppTheme&quot;&gt;
          &lt;item name=&quot;android:windowBackground&quot;&gt;@drawable/launch_screen&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  <p>I tried many combinations of <code>android:gravity</code>, but I didn't find the right one. Also, all combinations I found in the internet didn't work for me.
  I am testing on a Google Pixel 3a which has a resolution that doesn't fit exact to any of the drawable splash images.</p>
  <p>Is it possible to clip the image?</p>