Smooth scrolling with inertia and edge resistance/snapback

后端 未结 2 671
栀梦
栀梦 2021-02-01 11:08

I implemented basic scrolling via touch dragging and multitouch zooming for a custom view. This works well, but now I\'d like to add some advanced features.

For example,

2条回答
  •  执念已碎
    2021-02-01 11:57

    Use the Scroller class, I posted an example of use here.

    If you're on API 9 you could use OverScroller I think.

提交回复
热议问题