2

Is it possible to have a curved scrollbar like on WearableRecyclerView on ScrollView? How is it done?

A.L
  • 112
  • 9

1 Answers1

0

Here is a reference to get you started.

To create a curved layout for scrollable items in your wearable app:

  • Use WearableRecyclerView as your main container in the relevant XML layout.
  • Set the setEdgeItemsCenteringEnabled(boolean) method to true. This will align the first and last items on the list vertically centered on the screen.
  • Use the WearableRecyclerView.setLayoutManager() method to set layout of the items on the screen.

If you explore the document, you will be able to get in touch with the code snippet for customization of the scrolling.

For Circular Scrolling Gesture:

By default, circular scrolling is disabled in the WearableRecyclerView. If you want to enable a circular scrolling gesture in your child view, use the WearableRecyclerView’s setCircularScrollingGestureEnabled() method.

MαπμQμαπkγVπ.0
  • 5,887
  • 1
  • 27
  • 65
  • You can't use a XML layout file in WearableRecyclerView and that's why I wanted to use ScrollView. – A.L Aug 15 '17 at 10:17