An ink inspired widget for indicating pages in a ViewPager.
add in your root build.gradle
:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
then add
implementation 'com.github.adityasonel:InkPageIndicator:$latest-version
in your app's build.gradle
First, you need to add InkPageIndicator
into your XML layout -
<com.adityasonel.inkpage_indicator.InkPageIndicator
android:id="@+id/page_indicator"
app:dotDiameter="10dp"
app:dotGap="8dp"
app:currentPageIndicatorColor="#808080"
app:pageIndicatorColor="#ffffff" />