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
Смотрите видео Android Studio Tutorial (2021 Edition) - Part 3 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь DJ Malone 09 Февраль 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 138,953 раз и оно понравилось 1.3 тысяч людям.