added in version 22.1.0
belongs to Maven artifact com.android.support:recyclerview-v7:28.0.0-alpha1

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
Known Direct Subclasses


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

Inherited fields

From class android.view.ViewGroup.MarginLayoutParams
From class 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()

This method was deprecated in API level 22.1.0. use