androidkotlinandroid-viewpager2viewpagerindicator

How to create horizonatal animated pager indicator using view pager


I want to create a horizontal pager indicator like this horizonatal indicator

And also while looking in stackoverflow most of the answers are using compose, but since I haven't migrated my project to compose it is quite difficult to work on compose.

I tried this, and was able to create a circle page indicator but I am stuck with the animation part of the page indicator


Solution

  • See this GitHub page for the following style:

    enter image description here

    And this GitHub page for the following style:

    enter image description here

    And this GitHub page for the following style:

    enter image description here

    And this GitHub page for the following style: (More stars, up to date)

    enter image description here