androidandroid-viewpagerviewpagerindicator

Android View Pager with Auto Scroll indicator


In my Android app, I am have been able to auto-scroll view pager after a certain duration. I could not find a pager indicator that would show the time remaining before the scroll happens.

I have attached screenshot of a website below to give an idea of what I am trying to achieve.

Progress 1

Progress 2

Would help if you could share a library or code you have used for the tab indicator.


Solution

  • You can use the following library to display indicators and then programmatically scroll your View Pager to next position, using these functions in that library.

     @Override
    public void onNext() {
       //Move to position +1
    }
    
    @Override
    public void onPrev() {
       //Move to position -1
    }
    
    @Override
    public void onComplete() {
        //Called when complete
    }