A Splash Screen in an Android application is a screen that seems when the application is sent off and fills in as an early on viewable sign or marking component for the application. The primary motivation behind the Splash screen is to furnish the client with input that the application is sending off and to make a seriously captivating client experience while the application is stacking.
![]() |
How To Create Splash Screen Android |
In Android Studio, the Splash screen is ordinarily carried out as a different movement that is sent off first when the application begins. This movement contains a design that incorporates a picture or liveliness, which is shown to the client while the application is stacking. The span of the Splash screen is normally set to a couple of moments, after which the fundamental action of the application is sent off.
The Splash screen can be tweaked with different plan components, for example, a logo, progress bar, or foundation tone. It can likewise be utilized to show copyright or lawful notification, give tips, or show a concise instructional exercise of the application's elements.Generally, the Splash screen is a significant piece of an Android application as it assists with making a superior client experience and establishes the vibe for the application's plan and marking.
How To Create Splash Screen Android
A splash screen is a graphical control element that appears while an application or game is loading or starting up. Here are the steps to create a splash screen for an Android application:-
Step 1 - Create a new activity for your splash screen. In Android Studio, go to Java -> New -> Activity -> Empty Activity. Name it "SplashActivity".
Step 2 - Create a new layout file for your splash screen. In the "res" folder, right-click on the "layout" folder and select "New -> Layout resource file". Name it "activity_splash.xml".
Step 3 - Finally, add the Splash Activity to the manifest file. Copy the code given below and paste it in Android Manifest.XML .
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@drawable/logo"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.ApkdNews"
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:exported="false" />
<activity
android:name=".SplashActivity"
android:exported="true"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Also Read - How To Create Splash Screen Android Studio With Animation
Step 4 - Now copy the code given below and paste it in Activity_Splash.xml, now if you want to change the photo or text, then you have to change it from.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".SplashActivity">
<ImageView
android:layout_width="match_parent"
android:layout_height="300dp"
android:src="@drawable/logo"
android:scaleType="centerCrop"
android:padding="50dp"
android:layout_marginTop="220dp"/>
<ProgressBar
android:layout_width="220dp"
android:layout_height="10dp"
android:layout_gravity="center_horizontal"
style="?android:attr/progressBarStyleHorizontal"
android:max="100"
android:indeterminate="true"
android:progress="0"
android:layout_marginTop="100dp" />
</LinearLayout>
Step 5 - Now copy the code given below and paste it in SplashActivity.Java , Now if you want to change the photo or text, then you have to change it from.
( Your Package Name )
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
public class SplashActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Window window = getWindow() ;
window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_splash);
Thread splashTread = new Thread(){
@Override
public void run() {
try {
// You Can Change the time this place
sleep(3000);
startActivity(new Intent(getApplicationContext(),MainActivity.class));
finish();
} catch (InterruptedException e) {
e.printStackTrace();
}
super.run();
}
};
splashTread.start();
}
}
Also Read - How to Convert Any Website to Android App in Android Studio?
Step 6 - Now your Splash Screen is Complete Now you can run your codes and check.
How To Create Splash Screen Android Watch YouTube Video -
Conclusion - All in all, a Splash Screen is a urgent piece of the client experience in an Android application. It fills in as a viewable signal that the application is stacking and gives an open door to the application to show its marking, logos, or other plan components. Making a Splash screen in Android Studio includes making a different action with a design that incorporates a picture or liveliness and setting a deferral for the screen to be shown. Customization of the Splash screen is conceivable with different plan components to suit the application's marking and client experience. Generally, the Splash screen assists with making a really captivating client experience, set the vibe for the application's plan, and give significant data to the client prior to sending off the fundamental movement of the application.