All user codes based on raw touch events, with OnTouchListener, GestureDetector (onScroll, onFling, etc.) and OverScroller, to help calculate the speed, should be moved.
The view itself is just a class that extends FrameLayout, which we move up and down in the code.
Source: I wrote this;)
source share