Class AdminBrowseImagesAdapter

java.lang.Object
androidx.recyclerview.widget.RecyclerView.Adapter<AdminBrowseImagesAdapter.ImageViewHolder>
com.example.breeze_seas.AdminBrowseImagesAdapter

public class AdminBrowseImagesAdapter extends androidx.recyclerview.widget.RecyclerView.Adapter<AdminBrowseImagesAdapter.ImageViewHolder>
Adapter for the image gallery in the AdminBrowseImages screen. Displays each image as a tile with a delete button overlaid in the corner.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Holds the image preview and delete affordance for one admin gallery tile.
    static interface 
    Receives delete actions for one image tile in the admin image browser.

    Nested classes/interfaces inherited from class androidx.recyclerview.widget.RecyclerView.Adapter

    androidx.recyclerview.widget.RecyclerView.Adapter.StateRestorationPolicy
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    void
     
    onCreateViewHolder(android.view.ViewGroup parent, int viewType)
     
    void
    setImages(List<Image> newImages)
    Replaces the current list contents and refreshes the grid.

    Methods inherited from class androidx.recyclerview.widget.RecyclerView.Adapter

    bindViewHolder, createViewHolder, findRelativeAdapterPositionIn, getItemId, getItemViewType, getStateRestorationPolicy, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBindViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, setStateRestorationPolicy, unregisterAdapterDataObserver

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait