added in version 22.1.0
belongs to Maven artifact com.android.support:recyclerview-v7:28.0.0-alpha1
belongs to Maven artifact com.android.support:recyclerview-v7:28.0.0-alpha1
Summary:
Inherited Constants
| Inherited Fields
| Ctors
| Methods
| Inherited Methods
| [Expand All]
RecyclerView.LayoutParams
public
static
class
RecyclerView.LayoutParams
extends ViewGroup.MarginLayoutParams
java.lang.Object | |||
↳ | android.view.ViewGroup.LayoutParams | ||
↳ | android.view.ViewGroup.MarginLayoutParams | ||
↳ | android.support.v7.widget.RecyclerView.LayoutParams |
![]() |
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 |
---|
![]()
android.view.ViewGroup.LayoutParams
|
Inherited fields |
---|
![]()
android.view.ViewGroup.MarginLayoutParams
|
![]()
android.view.ViewGroup.LayoutParams
|
Public constructors | |
---|---|
RecyclerView.LayoutParams(Context c, AttributeSet attrs)
|
|
RecyclerView.LayoutParams(int width, int height)
|
|
RecyclerView.LayoutParams(ViewGroup.MarginLayoutParams source)
|
|
RecyclerView.LayoutParams(ViewGroup.LayoutParams source)
|
|
RecyclerView.LayoutParams(RecyclerView.LayoutParams source)
|
Public methods | |
---|---|
int
|
getViewAdapterPosition()
Returns the up-to-date adapter position that the view this LayoutParams is attached to corresponds to. |
int
|
getViewLayoutPosition()
Returns the adapter position that the view this LayoutParams is attached to corresponds to as of latest layout calculation. |
int
|
getViewPosition()
|