Class MyContextsDialog.myContextAdapter
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.Adapter<MyContextsDialog.myContextAdapter.MyViewHolder>
-
- eu.h2020.helios_social.core.context_example1.MyContextsDialog.myContextAdapter
-
- Enclosing class:
- MyContextsDialog
public class MyContextsDialog.myContextAdapter extends androidx.recyclerview.widget.RecyclerView.Adapter<MyContextsDialog.myContextAdapter.MyViewHolder>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classMyContextsDialog.myContextAdapter.MyViewHolder
-
Constructor Summary
Constructors Constructor Description myContextAdapter(java.util.ArrayList<Context> myDataset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetItemCount()voidonBindViewHolder(MyContextsDialog.myContextAdapter.MyViewHolder holder, int position)MyContextsDialog.myContextAdapter.MyViewHolderonCreateViewHolder(android.view.ViewGroup parent, int viewType)-
Methods inherited from class androidx.recyclerview.widget.RecyclerView.Adapter
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
-
-
-
-
Constructor Detail
-
myContextAdapter
public myContextAdapter(java.util.ArrayList<Context> myDataset)
-
-
Method Detail
-
onCreateViewHolder
public MyContextsDialog.myContextAdapter.MyViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType)
- Specified by:
onCreateViewHolderin classandroidx.recyclerview.widget.RecyclerView.Adapter<MyContextsDialog.myContextAdapter.MyViewHolder>
-
onBindViewHolder
public void onBindViewHolder(MyContextsDialog.myContextAdapter.MyViewHolder holder, int position)
- Specified by:
onBindViewHolderin classandroidx.recyclerview.widget.RecyclerView.Adapter<MyContextsDialog.myContextAdapter.MyViewHolder>
-
getItemCount
public int getItemCount()
- Specified by:
getItemCountin classandroidx.recyclerview.widget.RecyclerView.Adapter<MyContextsDialog.myContextAdapter.MyViewHolder>
-
-