override fun onCreate(savedInstanceState: Bundle?) {
Button click_me_button.setOnClickListener { }
}
} How it works var cachedView: HashMap<Int, View>?
fun getCachedViewById(id: Int): View this code is generated by compiler var click_me_button =
getCachedViewById(R.id.click_me_button) as Button