Stay organized with collections
Save and categorize content based on your preferences.
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 |
Informs the recycler whether this item can be recycled.
|
String |
|
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[]]