android - ViewPagerIndicator not changing colours -


i have integrated circlepageindicator viewpager.i trying change fill colour , page colour shows default colour only.below code trying.

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); 

you have open circlepageindicator class. find below:

    //load defaults resources     final resources res = getresources();     final int defaultpagecolor = res.getcolor(com.viewpagerindicator.r.color.default_circle_indicator_page_color);     final int defaultfillcolor = res.getcolor(com.viewpagerindicator.r.color.default_circle_indicator_fill_color);     final int defaultorientation = res.getinteger(com.viewpagerindicator.r.integer.default_circle_indicator_orientation);     final int defaultstrokecolor = res.getcolor(com.viewpagerindicator.r.color.default_circle_indicator_stroke_color);     final float defaultstrokewidth = res.getdimension(com.viewpagerindicator.r.dimen.default_circle_indicator_stroke_width);     final float defaultradius = res.getdimension(com.viewpagerindicator.r.dimen.default_circle_indicator_radius);     final boolean defaultcentered = res.getboolean(com.viewpagerindicator.r.bool.default_circle_indicator_centered);     final boolean defaultsnap = res.getboolean(com.viewpagerindicator.r.bool.default_circle_indicator_snap); 

from here change whatever need change. thanks


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -