In the latest version of Android changes were made as to how exactly elements from our XML layout are used in Kotlin. View Binding is one approach to access, modify and interact with our layout, what the user sees.
In this Android Studio tutorial let's setup a version of view binding. First we'll add a few lines to our build.gradle file, then setup a new variable at the top of MainActivity, allowing us to access XML widgets.
Join this channel to get access to perks:
/ @danielmalone
Watch video Android Studio Tutorial (2021 Edition) - Part 3 online without registration, duration hours minute second in high quality. This video was added by user DJ Malone 09 February 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 138,953 once and liked it 1.3 thousand people.