I want to add some rebound effect when HorizontalScrollView
scroll to right edge.
For example, a view like this:
-------------------------------------------------------------------------------------- | Content | | Content | | Content | | Content | | Content | --------------------------------------------------------------------------------------
With the normal HorizontalScrollView
, I press right direction key, this view will have no effect, but I want to this view will rebound like a jelly.
How can I implement this kind animation?
For HorizontalScrollView, if it's width is bigger than it's child view, it won't scroll, so there's no edge effect. You can try this to add rebound effect.