Skip to content

RenXiaoTian1991/ToolbarIndicator

 
 

Repository files navigation

ToolbatIndicator

Release Insprite and modified from CircleIndicator.

Preview

preview

How to use

Add the JitPack repository to your build.gradle:

repositories {
    maven { url "https://jitpack.io" }
}

Add the dependency:

dependencies {
    compile 'com.github.nekocode:ToolbarIndicator:v1.0'
}

Set the target ViewPager for ToolbarIndicator:

ToolbarIndicator toolbarIndicator = (ToolbarIndicator) this.findViewById(R.id.indicator);
toolbarIndicator.setViewPager(viewPager);

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

About

indicator显示在上面的viewpager切换fragment

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%