romandanylyk / PageIndicatorView

An page indicator for Android ViewPager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

piv_scaleFactor seems to be ignored

Syjgin opened this issue · comments

<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

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