public class CountryAdapter
extends androidx.recyclerview.widget.RecyclerView.Adapter<com.app.user.World.adapter.CountryAdapter.ViewHolder>
限定符和类型 | 类和说明 |
---|---|
static interface |
CountryAdapter.OnAdapterItemClickListener |
构造器和说明 |
---|
CountryAdapter(java.util.List<CountryBean> mData,
android.content.Context context,
CountryBean countryBean) |
限定符和类型 | 方法和说明 |
---|---|
int |
getItemCount() |
void |
onBindViewHolder(com.app.user.World.adapter.CountryAdapter.ViewHolder holder,
int position) |
com.app.user.World.adapter.CountryAdapter.ViewHolder |
onCreateViewHolder(android.view.ViewGroup parent,
int viewType) |
void |
setListener(CountryAdapter.OnAdapterItemClickListener listener) |
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 CountryAdapter(java.util.List<CountryBean> mData, android.content.Context context, CountryBean countryBean)
public com.app.user.World.adapter.CountryAdapter.ViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType)
onCreateViewHolder
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<com.app.user.World.adapter.CountryAdapter.ViewHolder>
public void onBindViewHolder(com.app.user.World.adapter.CountryAdapter.ViewHolder holder, int position)
onBindViewHolder
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<com.app.user.World.adapter.CountryAdapter.ViewHolder>
public int getItemCount()
getItemCount
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<com.app.user.World.adapter.CountryAdapter.ViewHolder>
public void setListener(CountryAdapter.OnAdapterItemClickListener listener)