How To Implement Android Splash Screen {Simple Solution}

Please follow and like us:

Android Splash Screen

Implement Android Splash Screen [Example/Tutorial]

We can use Splash Screen as launcher screen as waiting screen for network operations or we can shows as dummy screen to our app before main screen. We can also add nice animation to splash screen so it doesn’t looks boring to users of app.


Create Splash Image and put it into activity_splash.xml file

<LinearLayout xmlns:android="" xmlns:tools="" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" tools:context=".SplashActivity">

    <ImageView android:id="@+id/imgSplash" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="fitXY" android:src="@drawable/nk_png" />


Splash contains main logic of implementing Android Splash Screen.

import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.AnimationSet;
import android.view.animation.ScaleAnimation;
import android.widget.ImageView;

public class SplashActivity extends AppCompatActivity {

    private ImageView imgSplash;

    protected void onCreate(Bundle savedInstanceState) {
        imgSplash = (ImageView) findViewById(;

        AnimationSet animation = new AnimationSet(true);
        animation.addAnimation(new AlphaAnimation(0.0F, 1.0F));
        animation.addAnimation(new ScaleAnimation(0.0f, 1, 0.0f, 1, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f)); // Change args as desired


        new CountDownTimer(5000, 1000) {

            public void onTick(long millisUntilFinished) {


            public void onFinish() {

                Intent i = new Intent(SplashActivity.this, MainActivity.class);

We used countdown timer for 5 seconds here, but you can perform network operations also there, hope you liked out “implement android splash screen” simple tutorial, if you find any difficulty to implement android splash screen example in your app then let me know via comment here, glad to help you.


Stay connected for latest android development tutorials for beginners.

nirav kalola