To Watch video tutorial click here
step 1
- Create new project with activity name "SplashScreen"
step 2
Design Your Flash Screen :
- go to spashscreen xml file
- create Relative layout
- add image view (for your logo)
- also add textview for display your company name .
- Add image and text as you want
step 3
- go to splashscreen.kt file and type following code :
val SPLASH_TIME_OUT =4000Handler().postDelayed (object:Runnable{ public override fun run() { val home = Intent(this@SplashScreen, MainActivity::class.java) startActivity(home) finish() } },SPLASH_TIME_OUT.toLong())
step 4
- create your home activity name as "MainActivity"
- add textview or what you want
- Done . Launch your App