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

piv_scaleFactor seems to be ignored #132

Open
Syjgin opened this issue Feb 26, 2020 · 1 comment
Open

piv_scaleFactor seems to be ignored #132

Syjgin opened this issue Feb 26, 2020 · 1 comment

Comments

@Syjgin
Copy link

Syjgin commented Feb 26, 2020

<com.rd.PageIndicatorView android:layout_centerHorizontal="true" android:id="@+id/dots" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" app:piv_animationType="scale" app:piv_interactiveAnimation="true" app:piv_selectedColor="@color/selected_dot_color" app:piv_unselectedColor="@color/unselected_dot_color" app:piv_viewPager="@id/viewPager" android:layout_alignBottom="@+id/vip_slider" attrs:piv_padding="3dp" attrs:piv_radius="5dp" attrs:piv_scaleFactor="1.6"/>
Result:
image

@bunkatu
Copy link

bunkatu commented May 10, 2020

I just had the same issue and when looking into the code I realized these :

    public static final float MIN_SCALE_FACTOR = 0.3f;
    public static final float MAX_SCALE_FACTOR = 1;

So the scaleFactor has to be in between 0.3 and 1.
I know probably it is a bit late. But maybe it helps someone else

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