WearableRecyclerView

public class WearableRecyclerView extends RecyclerView implements ScrollingView, NestedScrollingChild, NestedScrollingChild2, NestedScrollingChild, NestedScrollingChild2, NestedScrollingChild3

Object
   ↳ RecyclerView
     ↳ WearableRecyclerView

Wearable specific implementation of the RecyclerView enabling setCircularScrollingGestureEnabled circular scrolling} and semi-circular layouts.

Summary

Public constructors

WearableRecyclerView(
    Context context,
    @Nullable AttributeSet attrs,
    int defStyle
)
WearableRecyclerView(
    Context context,
    @Nullable AttributeSet attrs,
    int defStyle,
    int defStyleRes
)

Public methods

float

Returns the current bezel width for circular scrolling as a fraction of the screen's radius.

float

Returns how many degrees does the user have to rotate for to scroll through one screen height.

boolean

Returns whether circular scrolling is enabled for this view.

boolean

Returns whether the view is currently configured to center the edge children.

@Override boolean
void
setBezelFraction(float fraction)

Taps within this radius and the radius of the screen are considered close enough to the bezel to be candidates for circular scrolling.

void
setCircularScrollingGestureEnabled(
    boolean circularScrollingGestureEnabled
)

Enables/disables circular touch scrolling for this view.

void
setEdgeItemsCenteringEnabled(boolean isEnabled)

Use this method to configure the WearableRecyclerView