Posts

[ Kotlin ] Animated Splash Screen in Android studio

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 =4000
    Handler().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 
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.