Introduction
Android is the most popular mobile platform available in the market. With over 85% market share worldwide, Android Operating System dominates the mobile platform market. In this article, today, I will show you how to create a splash screen of our Android app using Kotlin in Android Studio.
Requirements
- Android Studio version 3.5
- Little bit XML and KOTLIN knowledge
- Android Emulator (or) Android mobile
- Download link (Android Studio)
Steps to be followed
Follow these steps to create a splash screen using Kotlin in Android Studio. I have included the source code in the attachment.
Step 1
Open Android Studio and start a new Android Studio Project.

Step 2
Now, add the activity and click the "Next" button.

Step 3
You can choose your application name and choose where your project is to be stored and choose the Kotlin language for coding the project. Now, select the version of Android and select the target Android devices, and click "Finish".

Go to the drawable folder and add the image to make a splash screen.

Step 5
Go to activity_main.xml. This XML file contains the designing code for your Android app.

The XML code is given below.
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#fff"
- android:fitsSystemWindows="true">
- <androidx.appcompat.widget.AppCompatImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:src="@drawable/logo">
- </androidx.appcompat.widget.AppCompatImageView>
- </RelativeLayout>
Step 6




Prabakaran MPosted Oct 3, 2019, 7:02 AM
Thanks for Sharing Sir...