public class EndWatchAdapter extends AbsRecyclerViewAdapter implements HomePageDataMgr.DataChanged
AbsRecyclerViewAdapter.VideoAdapterListener
mListener, mPageShowListener
构造器和说明 |
---|
EndWatchAdapter(android.content.Context mContext,
VideoListDownloadWrapper mVideoListWrapper) |
限定符和类型 | 方法和说明 |
---|---|
void |
dataChanged() |
java.util.ArrayList<CardDataBO> |
getData() |
int |
getItemCount() |
long |
getItemId(int position) |
int |
getItemViewType(int position) |
void |
onBindViewHolder(androidx.recyclerview.widget.RecyclerView.ViewHolder holder,
int position) |
androidx.recyclerview.widget.RecyclerView.ViewHolder |
onCreateViewHolder(android.view.ViewGroup parent,
int viewType) |
void |
setCardListener(OnCardListener listener) |
setBottomStatus, setPageShowListener, setVideoAdapterListener
bindViewHolder, createViewHolder, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBindViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserver
public EndWatchAdapter(android.content.Context mContext, VideoListDownloadWrapper mVideoListWrapper)
public void setCardListener(OnCardListener listener)
public androidx.recyclerview.widget.RecyclerView.ViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType)
onCreateViewHolder
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
public void onBindViewHolder(androidx.recyclerview.widget.RecyclerView.ViewHolder holder, int position)
onBindViewHolder
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
public int getItemViewType(int position)
getItemViewType
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
public int getItemCount()
getItemCount
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
public void dataChanged()
dataChanged
在接口中 HomePageDataMgr.DataChanged
public long getItemId(int position)
getItemId
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
public java.util.ArrayList<CardDataBO> getData()