Simple indicator with a vertical streaks This indicator could change state on partial view pager offset
//set ViewPager Adapter to View Pager.
view_pager.adapter = SectionsPagerAdapter(this, supportFragmentManager)
//set ViewPager to indicator
view_pager_indicator.setupWithViewPager(view_pager)
//set indicator size
view_pager_indicator.setupIndicatorSize(3)
//This attributes used to change gap between indicator streaks
app:start_margin="@dimen/indicator_gap_dp"
app:end_margin="@dimen/indicator_gap_dp"
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add the dependency
dependencies {
implementation 'com.github.itslonua:viewpager_indicator:1.0.0'
}