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

Changing the size of the indicator icon #163

Open
dukay159 opened this issue Sep 13, 2022 · 3 comments
Open

Changing the size of the indicator icon #163

dukay159 opened this issue Sep 13, 2022 · 3 comments

Comments

@dukay159
Copy link

I am used ViewPager2 and CircleIndicator 3 for my image slider but the size of the unselected and selected icons isn't equal.

image

This is my code:

<me.relex.circleindicator.CircleIndicator3
        android:layout_width="match_parent"
        android:layout_height="30dp"
        android:layout_gravity="center"
        app:ci_drawable="@drawable/ic_indicator"
        app:ci_drawable_unselected="@drawable/ic_indicator_unselected"
        app:ci_height="8dp"
        app:ci_width="8dp"
        app:ci_margin="8dp"/>

Anyone knows how to set size for the indicator icons? Any help will be appreciated. Thanks!

@CongNguyenWiki
Copy link

How to change this by code java?

@Xyan-Banan
Copy link

this behaviour is because of animator. change ci_animator to some animator that does not interact with size of indicator

@hormesiel
Copy link

Duplicate of #56

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

4 participants