CirclePageIndicator not updating indicator
bkjbkjbnkj687698698 opened this issue · 0 comments
I have integrated CirclePageIndicator to viewpager.The issue is that its not changing indicator on changing views.i.e.the selected circle always remain the first one.
layout
< android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
< com.viewpagerindicator.CirclePageIndicator
android:id="@+id/circles"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_below="@+id/header"
android:layout_above="@+id/popup_achievement" />
Class
mViewPager.setAdapter(mAdapter);
circlePageIndicator.setViewPager(mViewPager);
circlePageIndicator.setBackgroundColor(0xFFCCCCCC);
circlePageIndicator.setRadius(15);
circlePageIndicator.setPageColor(R.color.gray);
circlePageIndicator.setFillColor(R.color.das_color);
circlePageIndicator.setStrokeColor(R.color.dffe_color);
circlePageIndicator.setSnap(true);