Android Button On Click

I got tired with the need to search for button on click listener codes each time I am coding Android once in a blue moon and now decided to just document it down.

Create a button
val button: Button = findViewById(R.id.button)
button.setOnClickListener {