Basically, the viewpager on the play store (aka the Android Market) and on the official launcher of Android works in a different way than the one found in the support library for this case, and I wish to get the same UI experience as there for scrolling between pages.
The situation is like this: when you touch the viewpager to scroll between the pages (and scroll a bit), and then you stop touching and quickly touch again, I get a different behavior:
- on the play store (and the official launcher) the scrolling animation stops and is kept in sync with the touch.
- on the support library the viewpager just stops the animation and jumps to the page that it was about to go to, no matter where you touched it.
How do I achieve the same functionality as the one on the play store and the official launcher?
The Android Playground project has this smooth stopping scroll you are talking about.
To be more specific, check this custom “
View Pager” class.