An android process bar library associated with ViewPager through single method
Add it in your build.gradle at the end of repositories:
allprojects { repositories { jcenter() maven { url "https://jitpack.io" } } }
Add the dependency in the form:
dependencies { compile 'com.github.hzw1199:android_ProcessBar:v1.1' }
processBar.setupWithViewPager(viewPager);
Example: