Android Development
Splash Screen
Responsive Design
Mobile App Development
Image Optimization

Android splash screen image sizes to fit all devices

Codemia Knowledge Hub ·

Do not export a giant bitmap for every device. On current Android, use the splash screen API with a theme background and correctly sized icon assets, and let the system scale them. The official sizes are in dp: a splash icon with background is 240 x 240 dp, one without background is 288 x 288 dp, and the optional branded image is 200 x 80 dp.

How Android 12 changed splash screens

From Android 12 the system splash screen is standardized. You usually no longer build a custom full-screen image layout as the main launch screen; you define the splash styling through theme attributes:

  • use a simple background color or drawable
  • provide a properly sized app icon or splash icon
  • optionally add branded imagery
  • let the system render and animate the launch screen

This is far more reliable than guessing one perfect bitmap size for every phone and tablet.

Why one static splash image breaks

The old approach, a centered image stretched across density buckets, caused:

  • cropping on tall screens
  • too much empty space on wide screens
  • blurry scaling on dense devices
  • large assets that slowed startup

The system splash screen avoids most of this by rendering predictable elements instead of a full-screen poster.

Splash icon sizes in dp

The official guidance gives splash icon dimensions in dp, not a table of per-device pixel sizes:

  • splash icon with background: 240 x 240 dp, with the visible icon fitting inside a 160 dp circle
  • splash icon without background: 288 x 288 dp, with the visible icon fitting inside a 192 dp circle
  • branded image: 200 x 80 dp

You provide drawable assets and the framework maps them to each screen density.

Theme-based splash screen setup

A modern implementation is mostly theme configuration:

xml
1<!-- res/values/themes.xml -->
2<style name="Theme.MyApp.Starting" parent="Theme.SplashScreen">
3    <item name="windowSplashScreenBackground">@color/splash_background</item>
4    <item name="windowSplashScreenAnimatedIcon">@drawable/ic_splash</item>
5    <item name="windowSplashScreenBrandingImage">@drawable/ic_branding</item>
6    <item name="postSplashScreenTheme">@style/Theme.MyApp</item>
7</style>

Then set the starting theme in the manifest:

xml
1<application
2    android:theme="@style/Theme.MyApp.Starting">
3    <activity
4        android:name=".MainActivity"
5        android:exported="true">
6        <intent-filter>
7            <action android:name="android.intent.action.MAIN" />
8            <category android:name="android.intent.category.LAUNCHER" />
9        </intent-filter>
10    </activity>
11</application>

Supporting older Android versions with the compat library

For one implementation that also behaves sensibly on older Android versions, use the Jetpack splash screen compatibility library:

kotlin
1import android.os.Bundle
2import androidx.activity.ComponentActivity
3import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
4
5class MainActivity : ComponentActivity() {
6    override fun onCreate(savedInstanceState: Bundle?) {
7        installSplashScreen()
8        super.onCreate(savedInstanceState)
9        setContentView(R.layout.activity_main)
10    }
11}

This is a cleaner migration path than maintaining separate custom launch layouts for modern and older devices.

What to put in the icon and branding assets

For the splash icon:

  • prefer a simple logo or mark
  • keep important content near the center
  • do not include much text
  • avoid edge-to-edge details that will be clipped

For the branded image:

  • treat it as optional
  • keep it lightweight
  • use it for subtle branding, not a second full logo composition

If you still use raster assets, generate density-specific versions in the normal drawable resource folders, but design them to the dp sizes above.

Full-screen artwork belongs in an in-app screen

If you want a heavily branded intro, make it an in-app screen shown after launch, not a fake replacement for the system splash screen. The system splash screen covers process startup; your intro screen covers app-specific loading or branding. Combining them into one heavy launch image usually slows startup and looks worse on more devices.

For a splash screen that fits every device, the safest recipe is:

  1. solid background color
  2. centered icon
  3. optional branded strip
  4. no text that must align perfectly with screen edges

Splash screen mistakes to avoid

  • Using one giant bitmap and expecting it to look right at every aspect ratio.
  • Designing the splash screen as a full poster instead of a system-rendered launch state.
  • Packing too much text into the splash icon.
  • Ignoring Android 12+ behavior and fighting the system splash screen instead of using it.
  • Confusing dp design guidance with hardcoded per-device pixel targets.

Course
Intermediate
27 lessons
15 hours
DSA Fundamentals

Master algorithmic patterns and data structures through hands-on LeetCode-style problems - from arrays and hashing to dynamic programming and advanced graphs.

View the course
Data Structures & Algorithms practice on Codemia

Step through 300+ coding interview problems with animated visualisers that show the data structure changing as the code runs. The Blind 75 are free.

Practice algorithms