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.FragmentTransactionCallbackNested classes/interfaces inherited from class androidx.recyclerview.widget.RecyclerView.Adapter
androidx.recyclerview.widget.RecyclerView.Adapter.StateRestorationPolicy -
Constructor Summary
ConstructorsConstructorDescriptionOrganizerEntrantListPagerAdapter(androidx.fragment.app.FragmentActivity fragmentActivity, String eventId) -
Method Summary
Modifier and TypeMethodDescriptionandroidx.fragment.app.FragmentcreateFragment(int position) intMethods inherited from class androidx.viewpager2.adapter.FragmentStateAdapter
containsItem, getItemId, onAttachedToRecyclerView, onBindViewHolder, onCreateViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewRecycled, registerFragmentTransactionCallback, restoreState, saveState, setHasStableIds, unregisterFragmentTransactionCallbackMethods 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
-
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:
createFragmentin classandroidx.viewpager2.adapter.FragmentStateAdapter
-
getItemCount
public int getItemCount()- Specified by:
getItemCountin classandroidx.recyclerview.widget.RecyclerView.Adapter<androidx.viewpager2.adapter.FragmentViewHolder>
-