Skip to content Skip to sidebar Skip to footer

View Pager Not Smooth When Embedded Within Scrollview?

I have requirement like play store app where there is view pager with images and videos and scroll to view details .Unfortunately when user scrolls the scroll is jumpy but if i r

Solution 1:

You are using 2 scrollisteners

  • A viewpager uses a scrolllistener
  • A scrollview uses a scrolllistener

These two scrollistener are fighting for the ScrollEvent. You can solve this by implementing onInterceptTouch. In this method you can decide who wins the fight over the ScrollEvent

Take a look at this protected post regarding a similair issue containing 2 scrollviews

Post a Comment for "View Pager Not Smooth When Embedded Within Scrollview?"