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

Any idea why my selected indicator is wider than the other circles? #118

Closed
casolorz opened this issue Nov 29, 2018 · 7 comments
Closed

Comments

@casolorz
Copy link

This is my layout:

<me.relex.circleindicator.CircleIndicator
           android:id="@+id/banner_indicator"
           android:layout_width="wrap_content"
           android:layout_height="6dp"
           app:ci_width="6dp"
           app:ci_height="6dp"
           app:ci_orientation="horizontal"
           android:layout_marginTop="4dp"
           app:layout_constraintLeft_toLeftOf="@+id/banner_pager"
           app:layout_constraintRight_toRightOf="@+id/banner_pager"
           app:layout_constraintTop_toBottomOf="@+id/banner_pager"/>

And this is what it ends up looking like:

image

@RomanZhilich
Copy link

The trouble is with default animator included in library scale_with_alpha.xml. Create another one manually and reference it from layout with app:ci_animator=

@casolorz
Copy link
Author

casolorz commented Jan 3, 2019

Thanks, that fixed it. Is there a recommended way to do the animator? I just changed the 1.8 to 1.0.

@NecoJack
Copy link

NecoJack commented Jan 4, 2019

Does not work
“Create another one manually and reference it from layout with app:ci_animator=”

@casolorz
Copy link
Author

casolorz commented Jan 4, 2019

It worked for me but I changed the animator from 1.8 to 1.0.

@ongakuer
Copy link
Owner

@casolorz

android:layout_height has to be bigger than app:ci_height

@ongakuer
Copy link
Owner

#129

@omkar-tenkale
Copy link

omkar-tenkale commented Aug 4, 2022

Fix for this issue: #129 (comment)

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

5 participants