CircleIndicator icon indicating copy to clipboard operation
CircleIndicator copied to clipboard

Is there a way to provide "ci_drawable" from the code?

Open mitab86 opened this issue 5 years ago • 3 comments

I had been using the ci_drawable from the XML but recently I need to provide the ci_drawable from activity as I have used the save slider from multiple sections and need to provide different color.

mitab86 avatar May 14 '20 04:05 mitab86

yes, you can, I have used mine with custom drawable xml

nivanrajmohan avatar May 14 '20 07:05 nivanrajmohan

Can you share please?

mitab86 avatar May 14 '20 08:05 mitab86

<me.relex.circleindicator.CircleIndicator android:id="@+id/indicator" android:layout_width="100dp" android:layout_height="match_parent" android:layout_alignParentRight="true" app:ci_gravity="top|center_horizontal" app:ci_margin="10dp" app:ci_orientation="vertical" app:ci_drawable="@drawable/circle_shape" app:ci_drawable_unselected="@drawable/circle_shape" app:ci_animator="@anim/scale_with_alpha2" /> Like this code. I use my drawable to change defult drable. You just need create a new drable file.

Booen-Ren avatar May 30 '20 01:05 Booen-Ren