Class AdminImageAdapter

java.lang.Object
androidx.recyclerview.widget.RecyclerView.Adapter<AdminImageAdapter.ImageViewHolder>
com.example.lottery.adapter.AdminImageAdapter

public class AdminImageAdapter extends androidx.recyclerview.widget.RecyclerView.Adapter<AdminImageAdapter.ImageViewHolder>
Adapter for displaying event poster images in the admin image browser.

Key Responsibilities:

  • Binds event poster thumbnails, titles, and dates to RecyclerView items.
  • Uses PosterImageLoader to load poster images via Glide.
  • Handles clicks on image items to navigate to the detail/preview screen.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
    ViewHolder class for holding and binding image item views.
    static interface 
    Interface definition for a callback to be invoked when an image item is clicked.

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

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

    Constructors
    Constructor
    Description
    Constructs a new AdminImageAdapter.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    void
     
    onCreateViewHolder(android.view.ViewGroup parent, int viewType)
     

    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