Class SimpleDataBinderAdapter<T,VB extends DynamicRecyclerViewBinder<?>>
java.lang.Object
androidx.recyclerview.widget.RecyclerView.Adapter<VH>
com.pranavpandey.android.dynamic.support.recyclerview.adapter.DynamicRecyclerViewAdapter<RecyclerView.ViewHolder>
com.pranavpandey.android.dynamic.support.recyclerview.adapter.DynamicBinderAdapter<VB>
com.pranavpandey.android.dynamic.support.recyclerview.adapter.DynamicSimpleBinderAdapter<VB>
com.pranavpandey.android.dynamic.support.recyclerview.adapter.factory.SimpleDataBinderAdapter<T,VB>
- Type Parameters:
T
- The type of the data this adapter will receive.VB
- The type of the dynamic recycler view binder.
- Direct Known Subclasses:
SimpleQueryBinderAdapter
public abstract class SimpleDataBinderAdapter<T,VB extends DynamicRecyclerViewBinder<?>>
extends DynamicSimpleBinderAdapter<VB>
A
DynamicSimpleBinderAdapter
to handle the generic data that can be used
with the DynamicDataBinder
.-
Nested Class Summary
Nested classes/interfaces inherited from class com.pranavpandey.android.dynamic.support.recyclerview.adapter.DynamicRecyclerViewAdapter
DynamicRecyclerViewAdapter.DynamicRecyclerViewItem, DynamicRecyclerViewAdapter.ItemType
-
Field Summary
Fields inherited from class com.pranavpandey.android.dynamic.support.recyclerview.adapter.DynamicRecyclerViewAdapter
TYPE_EMPTY_VIEW, TYPE_ITEM, TYPE_SECTION_DIVIDER, TYPE_SECTION_HEADER, TYPE_SETTING, TYPE_UNKNOWN
-
Constructor Summary
-
Method Summary
Methods inherited from class com.pranavpandey.android.dynamic.support.recyclerview.adapter.DynamicSimpleBinderAdapter
addDataBinder, addDataBinders, addDataBinders, getBinderList, getBinderPosition, getDataBinder, getItemViewType, getPosition, notifyBinderItemRangeChanged, notifyBinderItemRangeInserted, notifyBinderItemRangeRemoved
Methods inherited from class com.pranavpandey.android.dynamic.support.recyclerview.adapter.DynamicBinderAdapter
notifyBinderDataSetChanged, notifyBinderItemChanged, notifyBinderItemInserted, notifyBinderItemMoved, notifyBinderItemRemoved, onBindViewHolder, onCreateViewHolder
Methods inherited from class com.pranavpandey.android.dynamic.support.recyclerview.adapter.DynamicRecyclerViewAdapter
getContext, getLayoutManager, getRecyclerView, isComputingLayout, onAttachedToRecyclerView
Methods inherited from class androidx.recyclerview.widget.RecyclerView.Adapter
bindViewHolder, createViewHolder, getItemId, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onBindViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserver
-
Constructor Details
-
SimpleDataBinderAdapter
public SimpleDataBinderAdapter()
-
-
Method Details
-
getItemCount
public int getItemCount()- Overrides:
getItemCount
in classDynamicSimpleBinderAdapter<VB extends DynamicRecyclerViewBinder<?>>
-
getData
Get the data used by this binder adapter.- Returns:
- The data used by this binder adapter.
-
setData
Set the data for this binder adapter.- Parameters:
data
- The data to be set.
-
setData
Set the data for this binder adapter.- Parameters:
data
- The data to be set.position
- The binder position to be notified.
-