Answers for "kotlin onclick in button listenter"

1

kotlin onclicklistener

text_view.setOnClickListener {
    val intent = Intent(this@MainActivity, SecondActivity::class.java)
    intent.putExtra("key", "Kotlin")
    startActivity(intent)
}
Posted by: Guest on February-08-2021

Browse Popular Code Answers by Language