FragmentViewHolder

public final class FragmentViewHolder extends RecyclerView.ViewHolder


ViewHolder implementation for handling Fragments. Used in FragmentStateAdapter.

Summary

Inherited methods

From androidx.recyclerview.widget.RecyclerView.ViewHolder
final int

Returns the Adapter position of the item represented by this ViewHolder with respect to the RecyclerView's Adapter.

final int

This method is deprecated.

This method is confusing when adapters nest other adapters.

final @Nullable RecyclerView.Adapter<RecyclerView.ViewHolder>

Returns the Adapter that last bound this ViewHolder.

final int

Returns the Adapter position of the item represented by this ViewHolder with respect to the Adapter that bound it.

final long

Returns The itemId represented by this ViewHolder.

final int
final int

Returns the position of the ViewHolder in terms of the latest layout pass.

final int

When LayoutManager supports animations, RecyclerView tracks 3 positions for ViewHolders to perform animations.

final int

This method is deprecated.

This method is deprecated because its meaning is ambiguous due to the async handling of adapter updates.

final boolean
final void
setIsRecyclable(boolean recyclable)

Informs the recycler whether this item can be recycled.

String