LinearLayoutManager
open class LinearLayoutManager : RecyclerView.LayoutManager, ItemTouchHelper.ViewDropHandler, RecyclerView.SmoothScroller.ScrollVectorProvider
kotlin.Any | ||
↳ | androidx.recyclerview.widget.RecyclerView.LayoutManager | |
↳ | androidx.recyclerview.widget.LinearLayoutManager |
A RecyclerView.LayoutManager
implementation which provides similar functionality to android.widget.ListView
.
Summary
Nested classes | |
---|---|
open |
Constants | |
---|---|
static Int | |
static Int | |
static Int |
Public constructors | |
---|---|
Creates a vertical LinearLayoutManager |
|
<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int) Constructor used when layout manager is set in XML by RecyclerView attribute "layoutManager". |
Public methods | |
---|---|
open Unit |
assertNotInLayoutOrScroll(message: String!) |
open Boolean | |
open Boolean | |
open Unit |
collectAdjacentPrefetchPositions(dx: Int, dy: Int, state: RecyclerView.State!, layoutPrefetchRegistry: RecyclerView.LayoutManager.LayoutPrefetchRegistry!) |
open Unit |
collectInitialPrefetchPositions(adapterItemCount: Int, layoutPrefetchRegistry: RecyclerView.LayoutManager.LayoutPrefetchRegistry!) |
open Int | |
open Int | |
open Int | |
open PointF? |
computeScrollVectorForPosition(targetPosition: Int) |
open Int | |
open Int | |
open Int | |
open Int |
Returns the adapter position of the first fully visible view. |
open Int |
Returns the adapter position of the first visible view. |
open Int |
Returns the adapter position of the last fully visible view. |
open Int |
Returns the adapter position of the last visible view. |
open |