-
Notifications
You must be signed in to change notification settings - Fork 711
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
Set width for only active dots #129
Comments
You can set different drawables app:ci_drawable
app:ci_drawable_unselected |
I used that thing but width is not working
…On Mon, 12 Aug 2019 at 08:03, relex ***@***.***> wrote:
You can set different drawables
app:ci_drawable
app:ci_drawable_unselected
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#129?email_source=notifications&email_token=ACPLEJ3MM6QMXGQD7FRSSTTQEDDYTA5CNFSM4IK24NJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4BOV5Y#issuecomment-520284919>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACPLEJ6QIYRPDBM7AN5U5WTQEDDYTANCNFSM4IK24NJA>
.
|
Here is a sample: <me.relex.circleindicator.CircleIndicator
android:id="@id/indicator"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_gravity="bottom"
app:ci_animator="@animator/indicator_no_animator"
app:ci_drawable="@drawable/active"
app:ci_drawable_unselected="@drawable/normal"
app:ci_height="12dp"
app:ci_width="12dp"/> active.xml
normal.xml
|
You need to add app:ci_animator because default animator will scale the center dot, and as height is wrap content, it'll appear as a strip
res/anim/indicator_no_scale.xml
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It affect inactive dots,
Inactive dots should be rounded like in 2nd image
The text was updated successfully, but these errors were encountered: