peterKay
peterKay

Reputation: 19

How to set the size of the indicator icon in Indicator3?

I am used ViewPager2 and CircleIndicator 3 for my image slider but the size of the unselected and selected icons isn't equal.

image description

This is my code:

<me.relex.circleindicator.CircleIndicator3
        android:layout_width="match_parent"
        android:layout_height="30dp"
        android:layout_gravity="center"
        app:ci_drawable="@drawable/ic_indicator"
        app:ci_drawable_unselected="@drawable/ic_indicator_unselected"
        app:ci_height="8dp"
        app:ci_width="8dp"
        app:ci_margin="8dp"/>

Anyone knows how to set size (width and height) for the indicator icon? Any help will be appreciated. Thanks!

Upvotes: 1

Views: 295

Answers (0)

Related Questions