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

Can not set distance between dots #121

Open
Syjgin opened this issue Mar 11, 2019 · 3 comments
Open

Can not set distance between dots #121

Syjgin opened this issue Mar 11, 2019 · 3 comments

Comments

@Syjgin
Copy link

Syjgin commented Mar 11, 2019

Can you add possibility to do this? Currently, even with ci_margin is equals to 0dp, there are some distance between dots.

@saurabhnmahajan
Copy link

@Syjgin ci_margin seems to be working for setting the distance. Can you share the code?

@Syjgin
Copy link
Author

Syjgin commented Mar 20, 2019

<me.relex.circleindicator.CircleIndicator android:id="@+id/indicator" android:layout_width="wrap_content" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="@id/indicatorGuideline" app:ci_height="42dp" app:ci_width="42dp" app:ci_margin="0dp" app:ci_drawable="@drawable/ic_tutorial_selected_indicator" app:ci_animator="@animator/empty_animator" app:ci_drawable_unselected="@drawable/ic_tutorial_indicator" android:layout_height="wrap_content"/>

results in such view: http://tinypic.com/r/1zvrf5x/9
When I tried to reduce ci_width & ci_height, it reduces dots size and distance between it both, but some distance still exists even with ci_width and height equals to 5dp.
Expected behavior is that ci_width & ci_height is related to dot size only, and distance is controlled by ci_margin.
For our project I have to fork CircleIndicator to allow negative margins - can not find, why there are some distance between dots still exists

@saurabhnmahajan
Copy link

saurabhnmahajan commented Mar 20, 2019

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

2 participants