https://github.com/nekocode/toolbarindicator
A toolbar indicator for android, likes twitter's.
https://github.com/nekocode/toolbarindicator
android widget
Last synced: over 1 year ago
JSON representation
A toolbar indicator for android, likes twitter's.
- Host: GitHub
- URL: https://github.com/nekocode/toolbarindicator
- Owner: nekocode
- Created: 2015-12-30T09:16:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-24T15:54:12.000Z (over 9 years ago)
- Last Synced: 2025-03-20T17:23:36.467Z (over 1 year ago)
- Topics: android, widget
- Language: Java
- Homepage:
- Size: 2.16 MB
- Stars: 221
- Watchers: 8
- Forks: 33
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ToolbarIndicator
[](http://www.apache.org/licenses/LICENSE-2.0.html) [](https://jitpack.io/#nekocode/ToolbarIndicator)
Inspired from Twitter iOS App and modified from [CircleIndicator](https://github.com/ongakuer/CircleIndicator).
### Preview

### Using with gradle
- Add the JitPack repository to your root build.gradle:
```gradle
repositories {
maven { url "https://jitpack.io" }
}
```
- Add the dependency to your sub build.gradle:
```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](sample)** for more detail.