title: Resize images in bitmap in xml
body: <p>I am new to Android programming. Recently, I had started on a project and would like to make a splash screen for the Android app. I had read and successfully implemented the splash screen after <a href="https://www.bignerdranch.com/blog/splash-screens-the-right-way/" rel="noreferrer">following this tutorial</a>. However, I realise that my app logo stretches out of my screen, like this:</p>
  
  <p><a href="https://i.stack.imgur.com/rwStB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/rwStB.png" alt="Stretched out app logo"></a></p>
  
  <p>The following is my <code>background_splash.xml</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item
          android:drawable="@drawable/splash_background" /&gt;
  
      &lt;item&gt;
          &lt;bitmap
              android:gravity="center"
              android:src="@drawable/tap" /&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>I have tried</p>
  
  <pre><code>android:width="75sp"
  android:height="75sp"
  </code></pre>
  
  <p>in <code>&lt;bitmap&gt;</code> but it does not work. Thus, I would like to know if there is a way to resize the image (without Java code, preferably) except for using an <code>ImageView</code>. Any help would be appreciated!</p>