Skip to content Skip to sidebar Skip to footer

Create Custom Scroll Bar In Android Wear 2.0

Is there any way to create a WearableRecyclerView with a custom scroll bar in Android Wear 2.0 like this?

Solution 1:

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

https://developer.android.com/training/wearables/ui/lists.html#creating

use

val layoutManager = CurvedChildLayoutManager(this) recyclerView.layoutManager = layoutManager

PS: as for topic question, you dont need app:layout_box just use android:scrollbars="vertical" on your WearableRecyclerView

https://developer.android.com/reference/android/support/wearable/view/CurvedChildLayoutManager.html


Post a Comment for "Create Custom Scroll Bar In Android Wear 2.0"