WearableLinearLayoutManager
open class WearableLinearLayoutManager : LinearLayoutManager
kotlin.Any | |||
↳ | 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)
.
Summary
Nested classes | |
---|---|
abstract |
Callback for interacting with layout passes. |
Inherited constants | |
---|---|
Public constructors | |
---|---|
<init>(context: Context!, layoutCallback: WearableLinearLayoutManager.LayoutCallback!) Creates a |
|
Creates a |
Public methods | |
---|---|
open WearableLinearLayoutManager.LayoutCallback? | |
open Unit |
onLayoutChildren(recycler: RecyclerView.Recycler!, state: RecyclerView.State!) |
open Int |
scrollVerticallyBy(dy: Int, recycler: RecyclerView.Recycler!, state: RecyclerView.State!) |
open Unit |
setLayoutCallback(@Nullable layoutCallback: WearableLinearLayoutManager.LayoutCallback?) Set a particular instance of the layout callback for this |
Inherited functions | |
---|---|