-
Notifications
You must be signed in to change notification settings - Fork 158
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
CirclePageIndicator doesn't work properly #4
Comments
@mrHerintsoaHasina Thanks for you comment. Glad to see that you are using my project. I guess this issue would not happen. Did you change the color code of selected cirlcle indicator in vpi_defaults.xml? |
I didn't change it. I'm using the default values to quickly test the app. Do I need to change some values ? |
@mrHerintsoaHasina Circle indicator moves only if your device OS is > 3.x and field isSliderAnimation in MainActivity is set to |
@cooltechworks I have 4.4.2 android version and the field isSliderAnimation was set to false. Is it a problem if I extend MainActivity with android.support.v7.app.ActionBarActivity instead of AppCompatActivity ? |
@mrHerintsoaHasina No it should not cause any issues. Can you post your code? |
@cooltechworks I put here MainActivity.java, CirclePageIndicator.java and ColorShades.java. The MainActivity.java import android.graphics.drawable.Drawable; public class MainActivity extends ActionBarActivity{
} The CirclePageIndicator.java import static android.graphics.Paint.ANTI_ALIAS_FLAG; /**
interface PageIndicator extends ViewPager.OnPageChangeListener {
} The ColorShades.java public class ColorShades {
} |
@mrHerintsoaHasina Thanks for the code and I was able to reproduce it. In your code, you are still using Thanks, |
@cooltechworks For me the method addOnPageChangeListener is undefined for the type android.support.v4.view.ViewPager. From what version I need to use ? |
@mrHerintsoaHasina Android Support Library, revision 22.2.0 (May 2015) - in this version setOnPageChangeListener() has been deprecated and addOnPageChangeListener is added. Please use this version or above. Thanks, |
Hi,
Thanks fo your work. It's a pleasure to use it. I have just a problem with the circle page indicator. It's shown but when I swipe to another page, the white circle indicator doesn't move to indicate the current page. How can I fix that ?
Best regards
The text was updated successfully, but these errors were encountered: