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 radius of the selected indicator #120

Open
TrickMist opened this issue Jul 24, 2019 · 1 comment
Open

Changing radius of the selected indicator #120

TrickMist opened this issue Jul 24, 2019 · 1 comment

Comments

@TrickMist
Copy link

TrickMist commented Jul 24, 2019

Is there a way to change the radius of the selected indicator?

    <com.rd.PageIndicatorView
        app:piv_animationType="worm"
        app:piv_dynamicCount="true"
        app:piv_interactiveAnimation="true"
        app:piv_radius="3dp"
        app:piv_selectedColor="@color/green"
        app:piv_unselectedColor="@color/gray"
        app:piv_viewPager="@id/viewPager" />

Basically, what I am asking is if there is a piv_selectedRadius attribute or if there is a way to accomplish this programatically?

Kind regards,
Ivan

@Jide-xy
Copy link

Jide-xy commented Jul 28, 2019

I think you can achieve this using piv_scaleFactor in xml or setScaleFactor in code while using the scale animation

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