Closed krhckd93 closed 7 years ago
Just create an XML with your colors and use it with attrs : ci_drawable + ci_drawable_unselected
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid
android:color="@color/primary"/>
</shape>
app:ci_drawable="@drawable/circle_radius_selected"
app:ci_drawable_unselected="@drawable/circle_radius_unselected"
Is there a way to change it programmatically?
@tonroitman : you can edit this lib, you should add method Get and Set for selectedIndicator/currentIndicator. create 2 drawable for selectedIndicator and currentIndicator, after that, you can set Background Drawable.
selectedIndicator.setBackgroundDrawable / selectedIndicator.setBackground currentIndicator.setBackgroundDrawable / currentIndicator.setBackground
Someone forked this lib to make this feature? I would like to change color dynamically (e.g. random color each second)
@Mariovc : Just do it yourself .
@chihung93 Thanks for your help! I just found someone who already did it.
@Mariovc : can you send me the link for this?
@Mariovc : Thank you for your quick response!
Is it possible to change the color of the circles or the dots?