hi, how can I make my `HorizontalScroller` scroll ...
# compose
d
hi, how can I make my
HorizontalScroller
scroll to a specific point? I mean, I have several images in a
HorizontalScroller
and I need that when the user performs the scroll this movement continues so that the image that is seeing at that moment it is centered, for example, if the user stops scrolling in the middle of the first and the second image, the scroll completes the movement until only one of the 2 images is seen
z
You have access to and control of the
ScrollerPosition
, I think you could implement that behavior with that
h
It is like a PageView or a carousel behavior.
I was wondering if there is a composable to do it.
d
Would you give me a example about how to use that please? i don't find any sample code in Jetnews or other repositories