android-viewpager-indicator
项目地址: ravindu1024/android-viewpager-indicator

简介:A simple customizable indicator for ViewPagers
A simple customizable indicator for ViewPagers
Installation:
1) Download the repository
2) In Android Studio, select File->New->Import Module and select the "indicatorlib" directory and import it to your project
Usage:
1) add using xml:
2) Then in code:
ViewPagerIndicator indicator = (ViewPagerIndicator) findViewById(R.id.pager_indicator); indicator.setPager(pager); //pager - the target ViewPager
NOTE: Changes to the ViewPager pages at runtime will be automatically handled when you call notifyDataSetChanged().