Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

androidx.viewpager2.adapter

Interfaces

FragmentStateAdapter.FragmentTransactionCallback.OnPostEventListener Callback returned by FragmentStateAdapter.FragmentTransactionCallback.onFragmentPreAdded(Fragment), FragmentStateAdapter.FragmentTransactionCallback.onFragmentPreRemoved(Fragment), FragmentStateAdapter.FragmentTransactionCallback.onFragmentMaxLifecyclePreUpdated(Fragment, Lifecycle.State) called after the operation ends. 
StatefulAdapter ViewPager2 adapters should implement this interface to be called during View.onSaveInstanceState() and View.onRestoreInstanceState(Parcelable)  

Classes

FragmentStateAdapter Similar in behavior to FragmentStatePagerAdapter

Lifecycle within RecyclerView:

FragmentStateAdapter.FragmentTransactionCallback Callback interface for listening to fragment lifecycle changes that happen inside the adapter. 
FragmentViewHolder RecyclerView.ViewHolder implementation for handling Fragments.