https://kotlinlang.org logo
#compose
Title
# compose
s

Stefan Oltmann

10/25/2023, 2:49 PM
I'm certain that LazyVerticalGrid on Android once had automatically a scrollbar. Today I noticed that it's gone. Must have happened with one of the Compose updates. I don't use it that often. 🤔 How to add scrollbars to LazyVerticalGrid on Android?
m

MR3Y

10/25/2023, 4:07 PM
s

Stylianos Gakis

10/26/2023, 8:34 AM
It never did. Desktop has an official implementation. For Android nothing in androidx does this atm. You should try the link above or any other library potentially.
s

Stefan Oltmann

10/26/2023, 8:35 AM
Can't be. The LazyVerticalGrid in old versions had automatically a scroll bar. I remember that and used it.
I will take a look at the library above.
s

Stylianos Gakis

10/26/2023, 8:39 AM
Is that so? I don't know if grid had something special, but I very specifically remember there not being anything for LazyColumn, and it existing only in the -jvm artifact from the Jetbrains version of compose
s

Stefan Oltmann

10/26/2023, 8:40 AM
Yes, at the time around Compose Multiplatform 1.0 I only needed to do it for Desktop and the Android version automatically had one. I'm 100% certain. But back then it was (another) experimental thing and maybe support for that dropped.
blob shrug 1
s

Stylianos Gakis

10/26/2023, 8:48 AM
Yeah it definitely was experimental back then. It could be something that simply never made it to the stable releases
2 Views