我想知道我们如何在Kotlin for Android Development中设置基本的onClickListener. 假设您有要单击的textView text_view.text = "Hello Kotlin";text_view.setOnClickListener { val intent = Intent(this@MainActivity, SecondActivit
text_view.text = "Hello Kotlin"; text_view.setOnClickListener { val intent = Intent(this@MainActivity, SecondActivity::class.java) intent.putExtra("key", "Kotlin") startActivity(intent) }