setonclickListener Beispiel Kotlin
// set on-click listener
btn_click_me.setOnClickListener {
Toast.makeText(this, "You clicked me.", Toast.LENGTH_SHORT).show()
}
Vhern
// set on-click listener
btn_click_me.setOnClickListener {
Toast.makeText(this, "You clicked me.", Toast.LENGTH_SHORT).show()
}
uihuihi