Skip to content
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

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

Open
mitab86 opened this issue May 14, 2020 · 3 comments
Open

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

mitab86 opened this issue May 14, 2020 · 3 comments

Comments

@mitab86
Copy link

mitab86 commented May 14, 2020

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.

@nivanrajmohan
Copy link

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

@mitab86
Copy link
Author

mitab86 commented May 14, 2020

Can you share please?

@Booen-Ren
Copy link

<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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants