Skip to content

nekocode/ToolbarIndicator

Repository files navigation

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.

About

A toolbar indicator for android, likes twitter's.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages