Bindables

screenshot of Bindables

Android DataBinding kit for notifying data changes to UI layers with MVVM architecture.

Overview

This article is a product analysis of a library called "Bindables." The library is used to simplify and streamline the data binding process in Android applications. The article provides information on the key features of Bindables, installation instructions, and examples of how to use the library.

Features

  • BindingActivity: A base class for Activities that allows for easy binding of content layout with DataBindingUtil.
  • BindingFragment: Similar to BindingActivity, but for Fragments. Ensures the binding property is initialized in onCreateView.
  • BindingViewModel: Provides a way for UI to be notified of changes in the Model layers.
  • bindingProperty: Notifies UI layers of specific property changes and can be observed.
  • notifyPropertyChanged(): Customizes setters of general properties to notify data changes to UI layers.
  • Two-way binding: Allows for the implementation of two-way binding properties.
  • Binding functions: Implement bindable functions using @Bindable annotation and notifyPropertyChanged().

Summary

The Bindables library simplifies the data binding process in Android applications by providing easy-to-use base classes, such as BindingActivity and BindingFragment, that allow for easy binding of content layouts. The BindingViewModel provides a way to notify UI of changes in the Model layers, and the bindingProperty and notifyPropertyChanged() functions allow for efficient data updates in UI layers. Overall, Bindables is a useful library for developers looking to streamline the data binding process in their Android applications.