public class ItineraryAdapter extends androidx.recyclerview.widget.RecyclerView.Adapter<ItineraryViewHolder>
Constructor and Description |
---|
ItineraryAdapter(android.app.Activity context,
java.util.List<Itinerary> list,
androidx.fragment.app.Fragment fragment)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getItemCount()
Return the length of the JSON array passed into the ReviewAdapter.
|
void |
onBindViewHolder(ItineraryViewHolder holder,
int position) |
ItineraryViewHolder |
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 ItineraryAdapter(android.app.Activity context, java.util.List<Itinerary> list, @Nullable androidx.fragment.app.Fragment fragment)
context
- The parent Context.list
- The array of Itineraries objects in the wishlist.@NonNull public ItineraryViewHolder onCreateViewHolder(@NonNull android.view.ViewGroup parent, int viewType)
onCreateViewHolder
in class androidx.recyclerview.widget.RecyclerView.Adapter<ItineraryViewHolder>
RecyclerView.Adapter.onCreateViewHolder(ViewGroup, int)
public void onBindViewHolder(@NonNull ItineraryViewHolder holder, int position)
onBindViewHolder
in class androidx.recyclerview.widget.RecyclerView.Adapter<ItineraryViewHolder>
RecyclerView.Adapter.onBindViewHolder(RecyclerView.ViewHolder,
int)
public int getItemCount()
getItemCount
in class androidx.recyclerview.widget.RecyclerView.Adapter<ItineraryViewHolder>