How can I enable the scrolling effect of `LazyCoul...
# compose
k
How can I enable the scrolling effect of
LazyCoulmn
on Android 12?
g
Do you mean new overscroll effect? I don't think it supported, but during IO Q&A session it mentioned that it will be eventually supported out of the box
a
If you're running one of the android 12 beta builds on a device with the effect, you can use the android framework
EdgeEffect
API and draw it into a compose canvas using the usual android<->compose drawing interop stuff. Connect it to compose's nested scrolling facilities and you should have something that's pretty close to how we're going to add it anyway, and it'll be the glow on older platform versions
More of the default foundation compose scrolling APIs will do it by default Soon™️
👍 1
The above is just if you'd like to get out ahead of us in the meantime 🙂
n
@Adam Powell do you have some sample of this
EdgeEffect
+
LazyColumn
(or
Column
)
k
Maybe you could use Android native ScrollView and put composables into it
n
Thanks, but no, thanks 🙂 I just realized that there’s a open ticket for that… https://issuetracker.google.com/issues/171682480