Next level of android development with data binding

Data binding in Android

No more programming to update UI and link events to the views

Siva Ganesh Kantamani
6 min readSep 29, 2019

--

Photo by Goran Ivos on Unsplash
  1. Overview
  2. Integration
  3. Basics
  4. Data binding in Fragments, Dialogs and Recyclerview
  5. Two-Way binding
  6. Real-time useful features of data-binding
  7. Real-time challenges
  8. 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.

--

--