-
Notifications
You must be signed in to change notification settings - Fork 714
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
The first circle is always active #21
Comments
I had the same problem when updated from This solution worked for me:
I think the above behaviour should be reflected in the sample app. |
Thanks @eeVoskos, sadly that's not working for me, my code look like this mPager = (ViewPager) findViewById(R.id.pager);
CircleIndicator defaultIndicator = (CircleIndicator) findViewById(R.id.indicator_default);
mPagerAdapter = new ScreenSlidePagerAdapter(getSupportFragmentManager());
mPager.setAdapter(mPagerAdapter);
mPager.setCurrentItem(position);
defaultIndicator.setViewPager(mPager);
mPager.addOnPageChangeListener(defaultIndicator); But doesn't matter which position the ViewPager starts, the first indicator is always active, I'm doing something wrong? |
nvm, I switched this two lines and now it's working like a charm mPager.setCurrentItem(position);
defaultIndicator.setViewPager(mPager); |
Try calling
|
@eeVoskos is right. |
Hi, first of all, great work.
Is there any way to "deactivate" the first circle?, when I set the setCurrentItem in the adapter, the circle on that position is well activated but also the first one.
Regards.
The text was updated successfully, but these errors were encountered: