
Step 1Ĭreate Background for Splash Screen in drawable/splash_background.xml, the bitmap is the image we want to show. I wrote this XML file and Android Studio displays it correctly. For using as windowBackground in launch activity. To create the theme for the splash screen, follow the below process. I need to set size for item in layer-list. So, we will set a custom theme in Manifest for our splash activity. We’ll set a drawable inside the theme that’ll comprise the Activity’s background and an icon using layer-list as shown below.ĭo you know when an activity is called Android OS first see in the manifest is there any theme for that activity and load the theme from manifest? So instead of creating the layout, we’ll use the power of the application theme to create our initial layout (Our 2nd Method).Īpplication theme is instantiated before the layout is created. The cold start appears since the application takes time to load the layout file of the Splash Activity. It’ll give rise to slow starts to the application which is bad for the user experience (wherein a blank black/white screen appears). With the above approach, there’s an additional overhead that the SplashActivity uses to create its layout. new Handler().The purpose of a Splash Screen is to quickly display a beautiful screen while the application fetches the relevant content if any (from network calls/database).

Example – 5000 milliseconds private static int SPLASH_TIME_OUT = 5000 ģ.Next add the new handler. Please follow the steps below in order to create Splash Screen (Welcome Screen) for Android Applications:Ģ.Add the time interval. Android splash screen is the screen which is normally used to show the brand icon of the app while the app completely loads. In this Android tutorial, we will learn how to create a Splash Screen (Welcome Screen) in Android Studio in few simple steps.


Xxxhdpi (extra-extra-extra-high) ~640dpi (1280x1920px) Splash Screen Example in Android Studio Splash Screen Image Size For Different Screen Size: In some case we also use this splash screen to load process in background. Splash Screen is the first screen come when we open any Android application, this screen is use to display the company logo and name or some use this for brand promotions.
