kotlin button onclicklistener listviev code example
Example: kotlin onclicklistener
text_view.setOnClickListener {
val intent = Intent(this@MainActivity, SecondActivity::class.java)
intent.putExtra("key", "Kotlin")
startActivity(intent)
}