Published On Mar 14, 2021
How access the ID's from XML file without using findviewbyid ?
3 methods have been discussed to access your UI elements :
1) findViewByID() - one of the oldest way (old-fashioned way?)
Well, the simple old findViewById() method provides a way for you to make reference to a View from within your Kotlin code. In other words, it binds Views to the Kotlin code.
2) synthetic property from Kotlin Extensions ( deprecated today?)
3) View Binding - a relatively new way to access your UI elements using generated binding object
How access the ID's of XML file without using findviewbyid