Class OrganizerEntrantListPagerAdapter

java.lang.Object
androidx.recyclerview.widget.RecyclerView.Adapter<androidx.viewpager2.adapter.FragmentViewHolder>
androidx.viewpager2.adapter.FragmentStateAdapter
com.example.rocket_launch.organizer_events_tab.OrganizerEntrantListPagerAdapter
All Implemented Interfaces:
androidx.viewpager2.adapter.StatefulAdapter

public class OrganizerEntrantListPagerAdapter extends androidx.viewpager2.adapter.FragmentStateAdapter
adapter used for displaying entrant list tabs
  • Nested Class Summary

    Nested classes/interfaces inherited from class androidx.viewpager2.adapter.FragmentStateAdapter

    androidx.viewpager2.adapter.FragmentStateAdapter.ExperimentalFragmentStateAdapterApi, androidx.viewpager2.adapter.FragmentStateAdapter.FragmentTransactionCallback

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

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

    Constructors
    Constructor
    Description
    OrganizerEntrantListPagerAdapter(androidx.fragment.app.FragmentActivity fragmentActivity, String eventId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    androidx.fragment.app.Fragment
    createFragment(int position)
     
    int
     

    Methods inherited from class androidx.viewpager2.adapter.FragmentStateAdapter

    containsItem, getItemId, onAttachedToRecyclerView, onBindViewHolder, onCreateViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewRecycled, registerFragmentTransactionCallback, restoreState, saveState, setHasStableIds, unregisterFragmentTransactionCallback

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

    bindViewHolder, createViewHolder, findRelativeAdapterPositionIn, getItemViewType, getStateRestorationPolicy, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onBindViewHolder, onViewDetachedFromWindow, registerAdapterDataObserver, setStateRestorationPolicy, unregisterAdapterDataObserver

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OrganizerEntrantListPagerAdapter

      public OrganizerEntrantListPagerAdapter(@NonNull androidx.fragment.app.FragmentActivity fragmentActivity, String eventId)
  • Method Details

    • createFragment

      @NonNull public androidx.fragment.app.Fragment createFragment(int position)
      Specified by:
      createFragment in class androidx.viewpager2.adapter.FragmentStateAdapter
    • getItemCount

      public int getItemCount()
      Specified by:
      getItemCount in class androidx.recyclerview.widget.RecyclerView.Adapter<androidx.viewpager2.adapter.FragmentViewHolder>