public class PkRankAdapter extends androidx.recyclerview.widget.RecyclerView.Adapter<PkRankAdapter.ViewHolder>
限定符和类型 | 类和说明 |
---|---|
static interface |
PkRankAdapter.ClickCallBack |
static class |
PkRankAdapter.ViewHolder |
限定符和类型 | 字段和说明 |
---|---|
java.util.List<PKGameRankMessage.Supporter> |
mList |
构造器和说明 |
---|
PkRankAdapter(android.content.Context mContext,
boolean isNeedTank,
java.lang.String vid,
boolean isHost,
PkRankAdapter.ClickCallBack mFollowCallBack) |
限定符和类型 | 方法和说明 |
---|---|
int |
getItemCount() |
void |
onBindViewHolder(PkRankAdapter.ViewHolder holder,
int position) |
PkRankAdapter.ViewHolder |
onCreateViewHolder(android.view.ViewGroup parent,
int viewType) |
void |
refreshData(PKGameRankMessage.Supporter obj) |
void |
refreshData(java.lang.String uid,
boolean isFollow) |
void |
setData(java.util.List<PKGameRankMessage.Supporter> mList) |
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 java.util.List<PKGameRankMessage.Supporter> mList
public PkRankAdapter(android.content.Context mContext, boolean isNeedTank, java.lang.String vid, boolean isHost, PkRankAdapter.ClickCallBack mFollowCallBack)
public PkRankAdapter.ViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType)
onCreateViewHolder
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<PkRankAdapter.ViewHolder>
public void setData(java.util.List<PKGameRankMessage.Supporter> mList)
public void onBindViewHolder(PkRankAdapter.ViewHolder holder, int position)
onBindViewHolder
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<PkRankAdapter.ViewHolder>
public int getItemCount()
getItemCount
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<PkRankAdapter.ViewHolder>
public void refreshData(PKGameRankMessage.Supporter obj)
public void refreshData(java.lang.String uid, boolean isFollow)