Class HeaderBinder
java.lang.Object
com.pranavpandey.android.dynamic.support.recyclerview.binder.DynamicRecyclerViewBinder<VH>
com.pranavpandey.android.dynamic.support.recyclerview.binder.DynamicDataBinder<DynamicItem,ItemBinder.ViewHolder>
com.pranavpandey.android.dynamic.support.recyclerview.binder.factory.ItemBinder
com.pranavpandey.android.dynamic.support.recyclerview.binder.factory.HeaderBinder
- Direct Known Subclasses:
HeaderCardBinder
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pranavpandey.android.dynamic.support.recyclerview.binder.factory.ItemBinder
ItemBinder.ViewHolder -
Constructor Summary
ConstructorsConstructorDescriptionHeaderBinder(DynamicBinderAdapter<?> binderAdapter) Constructor to initialize an object of this class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether to set the for span forStaggeredGridLayoutManager.voidonBindViewHolder(ItemBinder.ViewHolder holder, int position) BindRecyclerView.ViewHolderat a particular position.onCreateViewHolder(ViewGroup parent, int viewType) Get theRecyclerView.ViewHolderfor this data binder.Methods inherited from class com.pranavpandey.android.dynamic.support.recyclerview.binder.DynamicDataBinder
getData, getItemCount, setData, setDataMethods inherited from class com.pranavpandey.android.dynamic.support.recyclerview.binder.DynamicRecyclerViewBinder
getBinderAdapter, getRecyclerViewAdapter, notifyBinderDataSetChanged, notifyBinderItemChanged, notifyBinderItemInserted, notifyBinderItemMoved, notifyBinderItemRangeChanged, notifyBinderItemRangeInserted, notifyBinderItemRangeRemoved, notifyBinderItemRemoved, notifyDataSetChanged
-
Constructor Details
-
Method Details
-
onCreateViewHolder
Description copied from class:DynamicRecyclerViewBinderGet theRecyclerView.ViewHolderfor this data binder.- Overrides:
onCreateViewHolderin classItemBinder- Parameters:
parent- The parent for this view holder.viewType- The type of the view to create the view holder.- Returns:
- The view holder associated with this data binder.
-
isFullSpanForStaggeredGrid
public boolean isFullSpanForStaggeredGrid()Returns whether to set the for span forStaggeredGridLayoutManager.- Returns:
trueto set the full span.
-