added in version 26.1.0
belongs to Maven artifact com.android.support:wear:28.0.0-alpha1

WearableLinearLayoutManager

public class WearableLinearLayoutManager
extends LinearLayoutManager

java.lang.Object
   ↳ android.support.v7.widget.RecyclerView.LayoutManager
     ↳ android.support.v7.widget.LinearLayoutManager
       ↳ android.support.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

class WearableLinearLayoutManager.LayoutCallback

Callback for interacting with layout passes. 

Inherited XML attributes

From class android.support.v7.widget.LinearLayoutManager
From class android.support.v7.widget.RecyclerView.LayoutManager

Inherited constants

From class android.support.v7.widget.LinearLayoutManager

Public constructors

WearableLinearLayoutManager(Context context, WearableLinearLayoutManager.LayoutCallback layoutCallback)

Creates a WearableLinearLayoutManager for a vertical list.

WearableLinearLayoutManager(Context context)

Creates a WearableLinearLayoutManager for a vertical list.

Public methods

WearableLinearLayoutManager.LayoutCallback