Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the size of image in splash screen?

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.

like image 384
luc Avatar asked Jan 17 '20 09:01

luc


People also ask

What size should a splash screen image be?

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.

How do I make a splash screen image?

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.


2 Answers

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

enter image description here

like image 183
Mary Avatar answered Sep 24 '22 21:09

Mary


Simple: create bigger logo files

I was also having the same problem, because my logo as you can in this print below, was very small:

Why?

Why the files that were in the "hdpi", "mdpi", "xhdpi", "xxhdpi", "xxxhdpi" folders respectively were in pixel sizes: 48, 72, 96, 144, 192, 512

How to fix?

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:

like image 31
lakscastro Avatar answered Sep 23 '22 21:09

lakscastro