public class NewUpLiveEndAdpater
extends androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
限定符和类型 | 字段和说明 |
---|---|
static int |
ID_COMMENTS |
static int |
ID_CONTENT |
static int |
ID_COVER |
static int |
ID_DIAMONDS |
static int |
ID_FANS |
static int |
ID_INSTITUTE |
static int |
ID_LEVEL |
static int |
ID_LIVE_TIME |
static int |
ID_RADAR |
static int |
ID_TIPS |
构造器和说明 |
---|
NewUpLiveEndAdpater(int ItemNumber,
int TotalNumber) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getFraction() |
int |
getItemCount() |
long |
getItemId(int position) |
int |
getItemViewType(int position) |
int |
getPositionById(long id) |
void |
onBindViewHolder(androidx.recyclerview.widget.RecyclerView.ViewHolder holder,
int position) |
androidx.recyclerview.widget.RecyclerView.ViewHolder |
onCreateViewHolder(android.view.ViewGroup parent,
int viewType) |
void |
setOnRadarClickListener(RadarView.OnRadarTextClickListener listener) |
void |
setOnRadarEndListener(RadarView.OnRadarAnimationEnd mOnRadarEndListener) |
void |
updatePageData(NewUpLiveEndBean bean,
int item) |
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 static final int ID_LEVEL
public static final int ID_TIPS
public static final int ID_RADAR
public static final int ID_DIAMONDS
public static final int ID_LIVE_TIME
public static final int ID_CONTENT
public static final int ID_COMMENTS
public static final int ID_COVER
public static final int ID_FANS
public static final int ID_INSTITUTE
public java.lang.String getFraction()
public void updatePageData(NewUpLiveEndBean bean, int item)
public void setOnRadarClickListener(RadarView.OnRadarTextClickListener listener)
public void setOnRadarEndListener(RadarView.OnRadarAnimationEnd mOnRadarEndListener)
@NonNull public androidx.recyclerview.widget.RecyclerView.ViewHolder onCreateViewHolder(@NonNull android.view.ViewGroup parent, int viewType)
onCreateViewHolder
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
public void onBindViewHolder(@NonNull androidx.recyclerview.widget.RecyclerView.ViewHolder holder, int position)
onBindViewHolder
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
public int getPositionById(long id)
public int getItemCount()
getItemCount
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
public long getItemId(int position)
getItemId
在类中 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>