public class BannedAdapter extends androidx.recyclerview.widget.RecyclerView.Adapter<BannedAdapter.BannedViewHolder>
限定符和类型 | 类和说明 |
---|---|
static class |
BannedAdapter.BannedViewHolder |
static interface |
BannedAdapter.OnClickListener |
构造器和说明 |
---|
BannedAdapter(android.content.Context mContext,
java.lang.String vid,
int type,
BannedAdapter.OnClickListener mOnClickListener) |
限定符和类型 | 方法和说明 |
---|---|
void |
addData(java.util.List<BlackUserInfo> newList) |
int |
getItemCount() |
void |
onBindViewHolder(BannedAdapter.BannedViewHolder holder,
int position) |
BannedAdapter.BannedViewHolder |
onCreateViewHolder(android.view.ViewGroup parent,
int viewType) |
void |
remove(java.lang.String uid) |
void |
setData(java.util.List<BlackUserInfo> newList) |
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 BannedAdapter(android.content.Context mContext, java.lang.String vid, int type, BannedAdapter.OnClickListener mOnClickListener)
public void setData(java.util.List<BlackUserInfo> newList)
public void addData(java.util.List<BlackUserInfo> newList)
public BannedAdapter.BannedViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType)
onCreateViewHolder
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<BannedAdapter.BannedViewHolder>
public void onBindViewHolder(BannedAdapter.BannedViewHolder holder, int position)
onBindViewHolder
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<BannedAdapter.BannedViewHolder>
public int getItemCount()
getItemCount
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<BannedAdapter.BannedViewHolder>
public void remove(java.lang.String uid)