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 |
![]() |
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 | |
---|---|
![]()
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 | |
---|---|
void
|
assertNotInLayoutOrScroll(String message)
Checks if RecyclerView is in the middle of a layout or scroll and throws an
|
boolean
|
canScrollHorizontally()
Query if horizontal scrolling is currently supported. |
boolean
|
canScrollVertically()
Query if vertical scrolling is currently supported. |
void
|
collectAdjacentPrefetchPositions(int dx, int dy, RecyclerView.State state, RecyclerView.LayoutManager.LayoutPrefetchRegistry layoutPrefetchRegistry)
G |