Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setSelection with no animation #118

Open
shanih opened this issue Jul 14, 2019 · 2 comments
Open

setSelection with no animation #118

shanih opened this issue Jul 14, 2019 · 2 comments

Comments

@shanih
Copy link

shanih commented Jul 14, 2019

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

thanks!

@loveprotocol
Copy link

loveprotocol commented Sep 27, 2019

@shanih
in README.md

image

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

  2. in xml
    app:piv_animationType="none"

@mrThinBone
Copy link

use setSelected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants