Android pager not working properly

I found an interesting bug in android view-pager (r4 ACL).

Speed ​​tracking will incorrectly move around the player’s viewing screen if you scroll your finger too fast or turn off the edge of the screen on older or slower devices.

I can play the original Galaxy Tab, HTC Desire, Nexus One, San Francisco, HTC Hero.

Open Google +, the market or something with a realistic implementation of the subcategory pager.

If you go to the far left page, then gently pull your finger over the right edge of the screen, you can make the view pager move to the right (opposite path in the direction of the drag) .

I need to research more, but it seems like the speed tracker can't keep up with slower devices. This can, of course, be done by viewing the pager when it quickly scrolls left and right. try on the new market (3.3+) to switch from one side to the other and see unpleasant results!

Any ideas for corrections, expanding the class. Im thinking that the screen can give odd results when a lot happens, and maybe some MotionEvents are missing, since I found it almost impossible to play new devices. (Nexus S, Samsung GSII, Sensation).

EDIT: this problem was resolved with ACL v6

Thank you, Chris

+5
source share
1 answer

, ViewPager, r4, , . . , , , .

, , , , MotionEvents VelocityTracker onInterceptTouchEvent down, , onTouchEvent, VelocityTracker . .

+5

All Articles