Two-way DataBinding in Android
In the earlier posts we have seen how to use DataBinding, Setting custom font and Image loading. Today we will discuss about two-way DataBinding.
What is Two-way DataBinding?
Till now we have seen how to set values to xml view, but in controls like EditText we need to fetch value. In simple term two-way DataBinding is setting values to that control and fetching it after having some changes.
ObservableField can be used instead of extending BaseObservable class. ObservableFields are self-contained observable objects that have a single field.
Continue Reading →