Answers for "on button click kotlin"

1

btn click kotlin

val button = findViewById<Button>(R.id.Button)
button.setOnClickListener {

}
Posted by: Guest on November-04-2021
1

on click in kotlin

button.setOnClickListener(object : View.OnClickListener {
            override fun onClick(v: View?) {
                //your implementation goes here
            }
        })
Posted by: Guest on December-22-2020

Browse Popular Code Answers by Language