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

louiscad

09/10/2020, 11:41 PM
I'm curious about how we can make a manually scrollable marquee for long text, so I've asked how to on stackoverflow : https://stackoverflow.com/questions/63838973/how-to-make-a-manually-scrollable-marquee-by-touch-or-mouse-touchpad-scroll-in If one knows how, or if Jetpack Compose team can respond it's not supported yet, feel free to answer it.
z

Zach Klippenstein (he/him) [MOD]

09/10/2020, 11:43 PM
Could you just put two copies of your text in a
ScrollableRow
, side-by-side? Or use a
LazyRowFor
if you don’t want to keep both children around all the time.
1
l

louiscad

09/11/2020, 5:24 AM
That will not make it marquee by default? I'd like to have auto-marquee, that you can interrupt and control by touch.
z

Zach Klippenstein (he/him) [MOD]

09/11/2020, 5:29 AM
I don’t think Compose has any marquee support yet. But it wouldn’t be hard to make one with the
ScrollableRow
, just animate the scroll position and use a gesture filter.
1
2 Views