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 following this tutorial. However, I realise that my app logo stretches out of my screen, like this:
The following is my background_splash.xml
:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:drawable="@drawable/splash_background" />
<item>
<bitmap
android:gravity="center"
android:src="@drawable/tap" />
</item>
</layer-list>
I have tried
android:width="75sp"
android:height="75sp"
in <bitmap>
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 ImageView
. Any help would be appreciated!