Create Custom Scroll Bar in Android Wear 2.0
Asked Answered
I

1

0

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

enter image description here

Improvisator answered 8/12, 2017 at 6:36 Comment(1)
Hi @Improvisator have you ever solved this one out? I want to create same effect like you and I am just digging into this... :)Alphanumeric
M
0

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

Moulder answered 8/12, 2017 at 7:0 Comment(9)
It will show default scroll bar right?.How can i create dotted scrollbar with different color using that?Improvisator
use custom scroll bar. Define these properties in listview android:scrollbarThumbVertical android:scrollbarTrackVerticalMoulder
Do u mean,Recycler List View with Circular Scrollbar?Improvisator
CurvedChildLayoutManager is deprecated nowImprovisator
Did you try WearableRecyclerView ?Moulder
yeah,I didn't get expected result.How can i add DotsPageIndicator in WearableRecyclerView ?Improvisator
,Im using WearableRecyclerView with PagerSnapHelperImprovisator
I think you have to create a scrollbar layout. write your own logic to indicate scroll area based on current list position.Moulder
I have found same from this link thinksaas.cn/group/topic/822885/,I need to show verticallyImprovisator

© 2022 - 2024 — McMap. All rights reserved.