A toolbar indicator for android, likes twitter's.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
art
gradle/wrapper
lib-toolbarindicator
sample
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

ToolbarIndicator

Apache 2.0 License Release

Inspired from Twitter iOS App and modified from CircleIndicator.

Preview

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.