belongs to Maven artifact com.android.support:wear:28.0.0-alpha1
WearableRecyclerView
public
class
WearableRecyclerView
extends RecyclerView
java.lang.Object | ||||
↳ | android.view.View | |||
↳ | android.view.ViewGroup | |||
↳ | android.support.v7.widget.RecyclerView | |||
↳ | android.support.wear.widget.WearableRecyclerView |
Wearable specific implementation of the RecyclerView
enabling setCircularScrollingGestureEnabled(boolean)
circular scrolling} and semi-circular layouts.
Summary
Inherited XML attributes | |
---|---|
![]()
android.support.v7.widget.RecyclerView
|
Inherited constants |
---|
![]()
android.support.v7.widget.RecyclerView
|
![]()
android.view.ViewGroup
|
![]()
android.view.View
|
Inherited fields |
---|
![]()
android.view.View
|
Public constructors | |
---|---|
WearableRecyclerView(Context context)
|
|
WearableRecyclerView(Context context, AttributeSet attrs)
|
|
WearableRecyclerView(Context context, AttributeSet attrs, int defStyle)
|
|
WearableRecyclerView(Context context, AttributeSet attrs, int defStyle, int defStyleRes)
|
Public methods | |
---|---|
float
|
getBezelFraction()
Returns the current bezel width for circular scrolling as a fraction of the screen's radius. |
float
|
getScrollDegreesPerScreen()
Returns how many degrees does the user have to rotate for to scroll through one screen height. |
boolean
|
isCircularScrollingGestureEnabled()
Returns whether circular scrolling is enabled for this view. |
boolean
|
isEdgeItemsCenteringEnabled()
Returns whether the view is currently configured to center the edge children. |
boolean
|
onTouchEvent(MotionEvent event)
|
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 |
void
|
setScrollDegreesPerScreen(float degreesPerScreen)
Sets how many degrees the user has to rotate by to scroll through one screen height when they are using the circular scrolling gesture.The default value equates 180 degrees scroll to one screen. |
Protected methods | |
---|---|
void
|
onAttachedToWindow()
|
void
|
onDetachedFromWindow()
|
Inherited methods | |
---|---|
![]()
android.support.v7.widget.RecyclerView
|