Рет қаралды 3,935
The Data Binding Library is a support library that allows you to bind UI components in your layouts to data sources in your app using a declarative format rather than programmatically. Layouts are often defined in activities with code that calls UI framework methods.
It's a part of Android JetPack Components.
As we use declarative Format instead of writing code for data binding, it reduces boilerplate code.
Uses of DataBinding:
You need not call findViewByID() anymore
Data Binding encourages the separation of UI logic with Business Logic.
Synchronization of UI With Data is easy.
Works pretty well with ViewModel and LiveData
Starter app Code :
github.com/pav...
Solution Code:
github.com/pav...
______________________
Social Media Links
______________________
Follow Me on Social Media :
Facebook : vidhvantech
Instagram : / pavankumarr. .
LinkedIn : / pavankred. .
Twitter : / trainertpk
Bolg : pavankreddytad...
My Profile: tpkreddy.githu...