Skip to content

botxxxx/SampleViewBinding-DataBinding-with-Mvvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Here is the Markdown summary for the four different code snippets:

BaseBindingFragment

@about BaseBindingFragment is an abstract class used to implement ViewBinding in fragments.

  • Manages the ViewBinding instance
  • Provides the binding property to access the ViewBinding instance
  • Offers the inflateBinding method to create and set up the ViewBinding
  • Implements the onDestroyView method to destroy the View and release the ViewBinding resources

BaseBottomSheetDialogFragment

@about BaseBottomSheetDialogFragment is an abstract class that extends BottomSheetDialogFragment and adds ViewBinding support for bottom sheet dialogs.

  • Inherits from BottomSheetDialogFragment and provides basic functionality for bottom sheet dialogs
  • Manages the ViewBinding instance
  • Provides the binding property to access the ViewBinding instance
  • Includes an abstract getViewBinding method to obtain a specific ViewBinding instance
  • Configures the behavior and window attributes of the bottom sheet dialog
  • Provides the setOnDismissListener method to set a listener for dialog dismiss events

BaseBindingAdapter

@about BaseBindingAdapter is an abstract class used to implement the basic adapter for RecyclerView with ViewBinding support.

  • Manages the RecyclerView adapter
  • Uses generic type parameters for the data set type
  • Binds layout elements using ViewBinding
  • Provides the setData method to set the data set
  • Offers the getItemCount method to retrieve the number of items in the data set

BaseDataBindingAdapter

@about BaseDataBindingAdapter is an abstract class used to implement the basic adapter for RecyclerView with DataBinding support.

  • Manages the RecyclerView adapter
  • Uses generic type parameters for the data set type
  • Binds layout elements using DataBinding
  • Provides the setData method to set the data set
  • Offers the getItemCount method to retrieve the number of items in the data set

The above summaries provide an overview of the four different code snippets.

Each snippet offers foundational functionality for supporting ViewBinding or DataBinding in various contexts.

About

ViewBindingFragment, ViewBindingBottomSheetDialogFragment, ViewBindingAdapter, DataBindingAdapter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages