Class AdminBrowseLogsAdapter

java.lang.Object
androidx.recyclerview.widget.RecyclerView.Adapter<AdminBrowseLogsAdapter.LogViewHolder>
com.example.breeze_seas.AdminBrowseLogsAdapter

public class AdminBrowseLogsAdapter extends androidx.recyclerview.widget.RecyclerView.Adapter<AdminBrowseLogsAdapter.LogViewHolder>
Adapter for displaying list of all notifications sent to users. Binds Notification data to the corresponding UI layout.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Holds references to the UI components for a single log/notification to avoid repeated findViewById calls.

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

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

    Constructors
    Constructor
    Description
    Constructor for the adapter
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the total number of notifications/logs in the current data set.
    void
    Binds the data from a Notification object to the views within the AdminBrowseLogsAdapter.LogViewHolder.
    onCreateViewHolder(android.view.ViewGroup parent, int viewType)
    Inflates the layout for individual log items in the RecyclerView.

    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