Class EmptyWrapper

  • All Implemented Interfaces:

    
    public class EmptyWrapper<T>
    extends RecyclerView.Adapter<VH>
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static int ITEM_TYPE_EMPTY
      protected RecyclerView.Adapter mInnerAdapter
    • Constructor Summary

      Constructors 
      Constructor Description
      EmptyWrapper(RecyclerView.Adapter adapter, int emptyLayoutId)
      EmptyWrapper(RecyclerView.Adapter adapter, View emptyView)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      boolean isEmpty()
      RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)
      void onAttachedToRecyclerView(RecyclerView recyclerView)
      void onViewAttachedToWindow(RecyclerView.ViewHolder holder)
      int getItemViewType(int position)
      void onBindViewHolder(RecyclerView.ViewHolder holder, int position)
      int getItemCount()
      • Methods inherited from class androidx.recyclerview.widget.RecyclerView.Adapter

        bindViewHolder, createViewHolder, getItemId, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onDetachedFromRecyclerView, onFailedToRecycleView, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserver
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EmptyWrapper

        EmptyWrapper(RecyclerView.Adapter adapter, int emptyLayoutId)
      • EmptyWrapper

        EmptyWrapper(RecyclerView.Adapter adapter, View emptyView)