louiscad

    louiscad

    2 years ago
    I'm curious about how we can make a manually scrollable marquee for long text, so I've asked how to on 😒tackoverflow: : 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.
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    2 years ago
    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.
    louiscad

    louiscad

    2 years ago
    That will not make it marquee by default? I'd like to have auto-marquee, that you can interrupt and control by touch.
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    2 years ago
    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.