I have a problem, I had a splash screen with an image and a background color but the image rendering is tiny, how can I change it?
This is my launch_background.xml:
<?xml version="1.0" encoding="utf-8"?>
<item>
<bitmap android:gravity="center" android:src="@drawable/splash" />
</item>
If you know a package or a way to solve it on Android and IOS it will be perfect.
Splash Screen dimensions The splash screen icon uses the same specifications as Adaptive icons, as follows: Branded image: This should be 200×80 dp. App icon with an icon background: This should be 240×240 dp, and fit within a circle of 160 dp in diameter.
The most straightforward way to create a simple splash screen was to create a dedicated theme overriding android:windowBackground with a drawable containing branding colors or a bitmap of a logo. The theme was set as an attribute of the launcher activity in AndroidManifest. xml.
you can do it the way you do for app icon
set in background launcher :
<item>
<bitmap
android:layout_height="fill_parent"
android:gravity="center"
android:src="@mipmap/splash" />
</item>
then resize your splash image and put in the corresponding folder in mipmap as below
LDPI: 320x200 px
MDPI: 480x320 px
HDPI: 800x480 px
XHDPI: 1280x720 px
XXHDPI:1600x960 px
XXXHDPI:1920x1280 px
Folder and code image
I was also having the same problem, because my logo as you can in this print below, was very small:
Why the files that were in the "hdpi", "mdpi", "xhdpi", "xxhdpi", "xxxhdpi"
folders respectively were in pixel sizes: 48, 72, 96, 144, 192, 512
Create bigger logo files
In my case, I doubled the pixel size of the files in the folders I mentioned above, so the "hdpi", "mdpi", "xhdpi", "xxhdpi", "xxxhdpi"
folders were respectively pixel sizes: 88, 144, 192, 288, 384, 1024
. And the result was this:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With