Google 致力于为黑人社区推动种族平等。查看具体举措

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
<init>(context: Context!)

Creates a vertical LinearLayoutManager

<init>(context: Context!, orientation: Int, reverseLayout: Boolean)

<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

open Boolean

open Boolean

open Unit

open Unit

open Int

open Int

open Int

open PointF?

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