LayoutParams subclass for children of
RecyclerView. Custom layout managers are encouraged
to create their own subclass of this LayoutParams class
to store any additional required per-child view metadata about the layout.
Summary
Inherited constants
From
class
android.view.ViewGroup.LayoutParams
int
FILL_PARENT
int
MATCH_PARENT
int
WRAP_CONTENT
Inherited fields
From
class
android.view.ViewGroup.MarginLayoutParams
Returns the up-to-date adapter position that the view this LayoutParams is attached to
corresponds to.
Returns
int
the up-to-date adapter position this view. It may return
NO_POSITION if item represented by this View has been removed or
its up-to-date position cannot be calculated.
Returns true if the adapter data item corresponding to the view this LayoutParams
is attached to has been changed in the data set. A LayoutManager may choose to
treat it differently in order to animate its changing state.
Returns
boolean
true if the item the view corresponds to was changed in the data set
Returns true if the adapter data item corresponding to the view this LayoutParams
is attached to has been removed from the data set. A LayoutManager may choose to
treat it differently in order to animate its outgoing or disappearing state.
Returns
boolean
true if the item the view corresponds to was removed from the data set
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 2024-04-11 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 2024-04-11 UTC."],[],[]]