romandanylyk / PageIndicatorView

An page indicator for Android ViewPager
4.63k stars 564 forks source link

setSelection with no animation #118

Open shanih opened 5 years ago

shanih commented 5 years ago

Hi! thanks for awesome library... is there an option to set selection without animation? (to go with viewPager.setCurrentItem(position ,false); )

thanks!

loveprotocol commented 5 years ago

@shanih in README.md

image

  1. programmatically yourIndicator.setAnimationType(AnimationType.NONE); yourIndicator.setSelected(position);

  2. in xml app:piv_animationType="none"

mrThinBone commented 4 years ago

use setSelected