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

LinearLayoutManager

public class LinearLayoutManager
extends RecyclerView.LayoutManager implements ItemTouchHelper.ViewDropHandler, RecyclerView.SmoothScroller.ScrollVectorProvider

java.lang.Object
   ↳ android.support.v7.widget.RecyclerView.LayoutManager
     ↳ android.support.v7.widget.LinearLayoutManager
Known Direct Subclasses


A RecyclerView.LayoutManager implementation which provides similar functionality to ListView.

Summary

Nested classes

class LinearLayoutManager.LayoutChunkResult

 

XML attributes

RecyclerView_android_orientation  
RecyclerView_reverseLayout  
RecyclerView_stackFromEnd  

Inherited XML attributes

From class android.support.v7.widget.RecyclerView.LayoutManager

Constants

int HORIZONTAL

int INVALID_OFFSET

int VERTICAL

Public constructors

LinearLayoutManager(Context context)

Creates a vertical LinearLayoutManager

LinearLayoutManager(Context context, int orientation, boolean reverseLayout)
LinearLayoutManager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Constructor used when layout manager is set in XML by RecyclerView attribute "layoutManager".

Public methods