In compose lazy column, why there is no default option to show scrollbar?
Asked Answered
I

0

6

In compose ui, lazy column or row, there is no default option to show scrollbar like in xml(android:scrollbars="vertical").

<android.support.v7.widget.RecyclerView
    android:id="@+id/recycler_view"
    android:scrollbars="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent" /> 
Interior answered 8/6, 2023 at 7:53 Comment(3)
Because the compose team have not yet implemented that feature. See the backlog on compose development (developer.android.com/jetpack/androidx/compose-roadmap). Or maybe you need to implement that feature, someone has implemented it. Not the smoothest scrollbar but you can tweak it (https://mcmap.net/q/342824/-jetpack-compose-scrollbars)Catholicon
Looks fine, Thanks @CatholiconInterior
You can use this repo , I've found on kotlin slack Channel github.com/nanihadesuka/LazyColumnScrollbarFortunia

© 2022 - 2024 — McMap. All rights reserved.