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

Popular posts from this blog

javascript - Complete OpenIDConnect auth when requesting via Ajax -

c# - Replace text in MailItem Body -

java - Get more than One value and display it -