Class EmptyBinder
java.lang.Object
com.pranavpandey.android.dynamic.support.recyclerview.binder.DynamicRecyclerViewBinder<VH>
com.pranavpandey.android.dynamic.support.recyclerview.binder.DynamicDataBinder<T,VH>
com.pranavpandey.android.dynamic.support.recyclerview.binder.DynamicQueryBinder<String,String,EmptyBinder.ViewHolder>
com.pranavpandey.android.dynamic.support.recyclerview.binder.factory.EmptyBinder
- Direct Known Subclasses:
EmptyCardBinder
A
DynamicDataBinder
to bind the search or any other query results that can be
used with the DynamicBinderAdapter
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
View holder to hold the empty view layout. -
Constructor Summary
ConstructorDescriptionEmptyBinder
(DynamicBinderAdapter<?> binderAdapter) Constructor to initialize an object of this class. -
Method Summary
Modifier and TypeMethodDescriptionGet the drawable used by this binder.boolean
Returns whether to set the for span forStaggeredGridLayoutManager
.void
onBindViewHolder
(EmptyBinder.ViewHolder holder, int position) BindRecyclerView.ViewHolder
at a particular position.onCreateViewHolder
(ViewGroup parent, int viewType) Get theRecyclerView.ViewHolder
for this data binder.void
setDrawable
(Drawable drawable) Set the drawable for this binder.Methods inherited from class com.pranavpandey.android.dynamic.support.recyclerview.binder.DynamicQueryBinder
getHighlightColor, getQuery, initHighlightColor, setData, setHighlightColor, setQuery
Methods inherited from class com.pranavpandey.android.dynamic.support.recyclerview.binder.DynamicDataBinder
getData, getItemCount, setData, setData
Methods 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:DynamicRecyclerViewBinder
Get theRecyclerView.ViewHolder
for this data binder.- Specified by:
onCreateViewHolder
in classDynamicRecyclerViewBinder<EmptyBinder.ViewHolder>
- 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:
true
to set the full span.
-
getDrawable
Get the drawable used by this binder.- Returns:
- The drawable used by this binder.
-
setDrawable
Set the drawable for this binder.- Parameters:
drawable
- The drawable to be set.
-