public class PKRidiculeGiftAdapter
extends androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
限定符和类型 | 类和说明 |
---|---|
static class |
PKRidiculeGiftAdapter.GiftHolder |
static interface |
PKRidiculeGiftAdapter.OnSelectGiftListener |
构造器和说明 |
---|
PKRidiculeGiftAdapter(android.content.Context context,
java.util.ArrayList<com.kxsimon.video.chat.gift_v2.bean.GiftV2> list,
PKRidiculeGiftAdapter.OnSelectGiftListener listener) |
限定符和类型 | 方法和说明 |
---|---|
int |
getItemCount() |
com.kxsimon.video.chat.gift_v2.bean.GiftV2 |
getSelectedGift()
获取当前选中的礼物
|
void |
onBindViewHolder(androidx.recyclerview.widget.RecyclerView.ViewHolder holder,
int position) |
androidx.recyclerview.widget.RecyclerView.ViewHolder |
onCreateViewHolder(android.view.ViewGroup parent,
int viewType) |
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 PKRidiculeGiftAdapter(android.content.Context context, java.util.ArrayList<com.kxsimon.video.chat.gift_v2.bean.GiftV2> list, PKRidiculeGiftAdapter.OnSelectGiftListener listener)
@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 com.kxsimon.video.chat.gift_v2.bean.GiftV2 getSelectedGift()
public int getItemCount()
getItemCount
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>