kotlin how to click a button code example
Example: setOnClickListener example kotlin
// set on-click listener
btn_click_me.setOnClickListener {
Toast.makeText(this, "You clicked me.", Toast.LENGTH_SHORT).show()
}
// set on-click listener
btn_click_me.setOnClickListener {
Toast.makeText(this, "You clicked me.", Toast.LENGTH_SHORT).show()
}