class MainActivity : AppCompatActivity() { private val splash:Int=3000 override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) val action=supportActionBar action?.setDisplayShowHomeEnabled(true) action?.setIcon(R.mipmap.ic_launcher) Handler().postDelayed({ val i= Intent(this,Main4Activity::class.java) startActivity(i) finish() },splash.toLong()) }
Thursday, 25 January 2018
New
Splashscreen code using kotlin in android studio
About Wise4rmGod
android developer and a graphic designer,who likes to blog and share latest IT information and help young developers grow.
tutorials
Labels:
tutorials
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment