Загрузка...

What is viewBinding? | How to use viewBinding in Android Studio? | no more findViewById(R.id.viewID)

This video will show you how to use viewBinding in your app, and how you can call views directly from layout into your Java file without using findViewById(R.id.viewID).
What is View Binding in Android studio?

View binding is a feature that allows you to more easily write code that interacts with views. Once view binding is enabled in a module, it generates a binding class for each XML layout file present in that module. An instance of a binding class contains direct references to all views that have an ID in the corresponding layout.
In most cases, view binding replaces findViewById.
#AndroidStudio

#AndroidJetPack
#viewBinding

#findViewById

Видео What is viewBinding? | How to use viewBinding in Android Studio? | no more findViewById(R.id.viewID) канала Hazzy Code
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять