How to Create A Standard Splash Screen With Kotlin Android Studio

How to Create A Standard Splash Screen With Kotlin Android Studio

this article was first published on nitecodes

How to Create A Standard Splash Screen With Kotlin Android Studio

First of All you will have to Create A new project in your Android Studio

After creating your new project and it has sync successfully the Main Activity.kt is going to look  like this codes shown below

MainActivity.kt 

then in your resource “res” folder in the “layout” folder also you’ll have to edit it in which you will have your logo and it looks like this at default

activity_main .xml

So After what you have to do now is to add your logo to your drawable folder, Then after you have added your logo then you are to create a new activity which is going to be your Splash Screen Activity. You can name your new activity SplashScreenActivity

So this is going to be the codes for your splash screen activity below.

 SplashScreenActivity.kt

For the layout which contains the logo for your splash screen this is the code below.

activity_splashsreen.xml

Note: You are to add this change in your manifest folder

AndroidManifest.xml

you are to add this also in your “values” folder which is your styles.xml

if you have a little idea concerning android studio with this little coded  which i showed you above you should be able to create a standard splash screen for your app using android studio and then kotlin programming language.

if you don’t understand anything or you are having any error please be free to comment below concerning your issues. i should be able to help you fix any error concerning this and note i will still create a youtube video concerning this tutorial.

Leave a Reply

Your email address will not be published. Required fields are marked *