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.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2024-04-11 UTC.",
"state": ""
}