Next level of android development with data binding
Data binding in Android
No more programming to update UI and link events to the views
- Overview
- Integration
- Basics
- Data binding in Fragments, Dialogs and Recyclerview
- Two-Way binding
- Real-time useful features of data-binding
- Real-time challenges
- Useful links
Overview
Android team has been working continuously to provide developers with support libraries and API’s. Data-binding is one of the best libraries from the android team which makes developers life easy than ever.
The main purpose of data-binding is very simple, it acts as a bridge between layout and data-sources. To be more precise data-binding provides the view references in the logic part besides that it has numerous powerful features which you’ll be reading in the following part of this article.
With Data-binding library there is no need to write findViewbyId to link views with java/Kotlin files. Although there are third party libraries like butter-knife to do this work but using native support libraries has its own advantages.