📜  setOnClickListener 示例 kotlin 代码示例

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

代码示例1
// set on-click listener
btn_click_me.setOnClickListener {
    Toast.makeText(this, "You clicked me.", Toast.LENGTH_SHORT).show()
}