public class DrawingGameChooseAdapter
extends androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
限定符和类型 | 类和说明 |
---|---|
static class |
DrawingGameChooseAdapter.ChooseHolder |
static interface |
DrawingGameChooseAdapter.OnChooseListener |
构造器和说明 |
---|
DrawingGameChooseAdapter(android.content.Context context) |
限定符和类型 | 方法和说明 |
---|---|
int |
getItemCount() |
void |
onBindViewHolder(androidx.recyclerview.widget.RecyclerView.ViewHolder holder,
int position) |
androidx.recyclerview.widget.RecyclerView.ViewHolder |
onCreateViewHolder(android.view.ViewGroup parent,
int viewType) |
void |
setChooseListener(DrawingGameChooseAdapter.OnChooseListener l) |
void |
setLanguageListData(java.util.ArrayList<DrawingGameLanguagesListInfo.LanguageItem> list) |
void |
setWordListData(java.util.ArrayList<DrawingGameWordsListInfo.WordItem> list) |
bindViewHolder, createViewHolder, getItemId, getItemViewType, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBindViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserver
public void setChooseListener(DrawingGameChooseAdapter.OnChooseListener l)
public void setLanguageListData(java.util.ArrayList<DrawingGameLanguagesListInfo.LanguageItem> list)
public void setWordListData(java.util.ArrayList<DrawingGameWordsListInfo.WordItem> list)
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 getItemCount()
getItemCount
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>