Android Question ScrollView magnetic positions

Melghost

Member
Licensed User
Longtime User
Hi!

I have several views into a ScrollView. All these views are the same size. When I finish scrolling it up or down with my finger, I want the scroll position automatically stop at a specific point so the whole selected view is shown at its right location.
I've tried to put a panel over the ScrollView and capture the Touch-ACTION_UP and ACTION_MOVE events, and then set the required ScrollPosition values, but it consumes the events I need to do other tasks with the views in the ScrollView, so I think it's not a valid solution.

Does anybody know what's the right way to do it?

Thank you
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…