I am following a course where the instructor has import the GUI component id's without having to declare them. The original long version of declaring the id into variables is shown below.
val btn_click_me = findViewById(R.id.button) as Button
btn_click_me.setOnClickListener {...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.