📜  kotlin onclicklistener - Kotlin 代码示例

📅  最后修改于: 2022-03-11 14:53:34.455000             🧑  作者: Mango

代码示例3
text_view.setOnClickListener {
    val intent = Intent(this@MainActivity, SecondActivity::class.java)
    intent.putExtra("key", "Kotlin")
    startActivity(intent)
}