public class AdminItineraryGlobetrotterAdapter extends androidx.recyclerview.widget.RecyclerView.Adapter<AdminItineraryGlobetrotterViewHolder>
Constructor and Description |
---|
AdminItineraryGlobetrotterAdapter(android.content.Context context,
java.util.List<Reservation> list)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getItemCount()
Return the length of the array passed into the ReviewAdapter.
|
void |
onBindViewHolder(AdminItineraryGlobetrotterViewHolder holder,
int position) |
AdminItineraryGlobetrotterViewHolder |
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 AdminItineraryGlobetrotterAdapter(android.content.Context context, java.util.List<Reservation> list)
context
- The parent Context.list
- The array of JSON Objects got from server.@NonNull public AdminItineraryGlobetrotterViewHolder onCreateViewHolder(@NonNull android.view.ViewGroup parent, int viewType)
onCreateViewHolder
in class androidx.recyclerview.widget.RecyclerView.Adapter<AdminItineraryGlobetrotterViewHolder>
RecyclerView.Adapter.onCreateViewHolder(ViewGroup, int)
public void onBindViewHolder(@NonNull AdminItineraryGlobetrotterViewHolder holder, int position)
onBindViewHolder
in class androidx.recyclerview.widget.RecyclerView.Adapter<AdminItineraryGlobetrotterViewHolder>
RecyclerView.Adapter.onBindViewHolder(RecyclerView.ViewHolder,
int)
public int getItemCount()
getItemCount
in class androidx.recyclerview.widget.RecyclerView.Adapter<AdminItineraryGlobetrotterViewHolder>