ToolbarIndicator

Additional

Language
Java
Version
1.1 (Jun 23, 2016)
Created
Dec 30, 2015
Updated
Jan 24, 2017 (Retired)
Owner
nekocode
Contributor
nekocode
1
Activity
Badge
Generate
Download
Source code
APK file

Show card

ToolbarIndicator

Inspired from Twitter iOS App and modified from CircleIndicator.

Preview

Using with gradle

  • Add the JitPack repository to your root build.gradle:
repositories {
    maven { url "https://jitpack.io" }
}
  • Add the dependency to your sub build.gradle:
dependencies {
    compile 'com.github.nekocode:ToolbarIndicator:{latest-version}'
}
  • Set the target ViewPager for ToolbarIndicator:
ToolbarIndicator toolbarIndicator = (ToolbarIndicator) this.findViewById(R.id.indicator);
toolbarIndicator.setViewPager(viewPager);

Sample

ToolbarIndicator get titles from FragmentPagerAdapter's getPageTitle function, check the sample project for more detail.