Android 12 Developer Preview is here! Try it out, and give us your feedback!


open class WearableLinearLayoutManager : LinearLayoutManager
   ↳ androidx.recyclerview.widget.RecyclerView.LayoutManager
   ↳ androidx.recyclerview.widget.LinearLayoutManager
   ↳ androidx.wear.widget.WearableLinearLayoutManager

This wear-specific implementation of LinearLayoutManager provides basic offsetting logic for updating child layout. For round devices it offsets the children horizontally to make them appear to travel around a circle. For square devices it aligns them in a straight list. This functionality is provided by the CurvingLayoutCallback which is set when constructing the this class with its default constructor WearableLinearLayoutManager(Context).


Nested classes

Callback for interacting with layout passes.

Inherited constants
Public constructors

Creates a WearableLinearLayoutManager for a vertical list.

<init>(context: Context!)

Creates a WearableLinearLayoutManager for a vertical list.

Public methods
open WearableLinearLayoutManager.LayoutCallback?

open Unit

open Int

open Unit

Set a particular instance of the layout callback for this WearableLinearLayoutManager.

Inherited functions