How to create a Splash Screen in Android Studio (Kotlin 2020)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
all right so hello and welcome to another Android studio tutorial where in this video I'll be showing you how to create this simple splash screen and it's essentially for those of you who don't know what a splash screen is it's a kind of a pop-up icon in the beginning of an app and it's very easy to make I was just playing around with Android studio and I decided let's make it at all about it but the first thing you want to do is create a new activity so we'll go to activity and we'll create a new empty activity I'm just going to name it to splash screen activity what that being said we can now go to our activity XML and before we do that we're actually going to go straight down to our drawable file and we're gonna create an icon or you can import an image whatever you desire I just decided to use a vector assets and let's just keep this simple let's click on the images and I'm going to go for an audio track piano notes or music symbol whatever you'd like to call it and let's see how it looks in writes now I don't really like it so we're going to go black and that is the original color so I think it's a lot better so we'll just use that for now and once you're done doing that we're gonna go straight to our XML file again and change it to a relative layout and here we're gonna actually insert an image view and in this image view we're gonna write 200 DP 200 DP so it gives it a bit of size and we're gonna put the source to our recently created icon and we're gonna Center it in the parents then we're gonna give it an ID of image view underscore notes just to keep it simple and finally after that we can go to our value file and we're gonna go to styles we're gonna copy and paste our app theme style and we're gonna remove the action bar so it actually looks like a beautiful empty screen with a notes when you open it and that's all then we're gonna go to our manifest file and we're going to go straight to our splash screen activity and we're gonna add the theme which is going to be our new splash screen theme and we're gonna copy and paste intent filter and delete it from main activity this essentially just declares that this will be the first screen to pop up when you open up and with that being said that's all you need in the manifest is just gonna make sure you use that theme and but that's the first thing next we're gonna go to our main active our splash screen activity file and we're going to do IV underscore notes and we're gonna set the Alpha to zero so it's empty when you start it just to give it a nice animation then we're gonna write it again image view notes and we're going to animate it set a duration to 1500 but you can put your own value and we're gonna set the value to alpha one with an end action and this induction is gonna create an intense which is going to open our main activity and that's essentially how you create the splash screen so start the activity which is going to be I and it's important you write this to give it a nice animation it's overripe ending transition and we're gonna put Android ah annum fade in and the same thing for a fade out and then we're gonna write finish so if you try to go back when you go to your main activity it won't go back to the note or the splash screen it will just stay on the main activity and that's it and that's essentially all there is to creating a splash screen and I hope this tutorial helps if you want any other tutorials in the near future please comments and I'll see in the next video
Info
Channel: Indently
Views: 57,342
Rating: undefined out of 5
Keywords: kotlin, java, android, studio, 2020, developer, apps, app, applications, programme, programming, program, mac, ios, apple, os, api, easy, tutorial
Id: WZWr0Abomfw
Channel Id: undefined
Length: 3min 10sec (190 seconds)
Published: Fri Apr 03 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.