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

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -