I wanted to know that how we set basic onClickListener in Kotlin for Android Development.
Suppose you have textView to click
text_view.text = "Hello Kotlin";
text_view.setOnClickListener {
val intent = Intent(this@MainActivity, SecondActivity::class.java)
intent.putExtra("key", "Kotlin")
startActivity(intent)
}