android - Viewpager PageScrollStateChanged called multiple times -
i wondering if it's normal pagescrollstatechanged, event of viewpager, called 3 times when swiping viewpager
yes normal behavior. meanings of arg0 @ 3 times follows.
1 begins dragging 2 when pager automatically settling current page 0 stopped/idle.
you can write code inside " if(arg0==1) " block, if want execute code if scrolling.
Comments
Post a Comment