-
Notifications
You must be signed in to change notification settings - Fork 0
CustomClasses
LazyRecyclerAdapter
This abstract class is responsible for lazy loading of data in Recyclerview, you have to provide 2 views for it. 1 is for data and 2nd is for lazy loading. Attach LazyLoadRecyclerCallback
interface by calling addLazyLoadCallback
to get notified by onLoadMore
method when Recyclerview scroll to end. If you don't want to load more data when Recyclerview scroll to ends, just simply call canLazyLoadAgain
and pass false
to it. Please see the sample class for more detail, or your can just see the class directly.
LazySwappableRecyclerAdapter implementation
SwappableRecyclerAdapter
This abstract class is responsible for loading of data in Recyclerview. It's just a simple recyclerview class. Where you have to provide view for binding.
RecyclerAdapter implementation
PermissionManager
This class is responsible for handling permissions in android(upto version 28). You can see the class description in the class itself.
ParametrizedFactory
This class is responsible for constructor of viewModel by reflection.(Shorter approach is here)
ParametrizedFactory Implementation
MultipleParametrizedFactory
This class is responsible for constructor of viewModel by for multiple objects(Shorter approach is here)
MultipleParametrizedFactory Implementation
CustomRecyclerAdapter
This abstract class is responsible for loading of data in Recyclerview. It's just a simple recyclerview class. Where you have to provide view for binding.
RecyclerAdapter implementation
CustomViewHolder
This class is responsible for making fast ViewHolder implementation.
CustomViewHolder implementation
NetworkObserver
This class is responsible observing live network connection.
NetworkObserver implementation