RecyclerView With Android DataBinding

In I/O 2015 Google announced a data binding library for Android. With Data Binding, you create an ongoing link between an element in the user interface and a value. Data Binding is the process that establishes a connection between the application UI and business logic.

In this post we will learn how to integrate recyclerview with android Data Binding.

Step 1 : Enable dataBinding in your module level gradle, here is how your build.gradle should look like.

Continue Reading


Advance DataBinding in Android

In earlier posts we have already seen

  1. Working with DataBinding Android
  2. Image Loading with DataBinding in Android
  3. Two-way DataBinding in Android
  4. Setting custom font through XML with DataBinding

Today we will discuss more about Advance DataBinding

Binding Events : 

Events will be bound to handler methods directly, like we used to do it with android:onClick. Only change will be we have to take reference of our interface(handler).
Continue Reading



Working with Data Binding Android

In I/O 2015 Google announced a data binding library for Android. With data binding, you create an ongoing link between an element in the user interface and a value. Data binding is the process that establishes a connection between the application UI and business logic.

As a developer we always try to do tasks with lesser code, findViewById and setText would be the things which will increase line of codes. Data binding eliminates needs of these methods.

DataBinding is a support library so you can use it with the version higher than Android 2.1. Now we will see step by step instruction for how to use DataBinding in real time.
Continue Reading