Android-Universal-ViewPager-Indicator
Android-Universal-ViewPager-Indicator copied to clipboard
Android Universal ViewPager Indicator
Results
1
Android-Universal-ViewPager-Indicator issues
Sort by
recently updated
recently updated
newest added
```java public void attachToViewPager(ViewPager viewPager) { this.viewPager = viewPager; PagerAdapter pagerAdapter = viewPager.getAdapter(); if (pagerAdapter != null) { //TODO 如果项目使用了阿里开源库,UltraViewPager,想要兼容需要用以下方式获取 itemCount,否则去除这个if条件 if (pagerAdapter instanceof UltraViewPagerAdapter) { //从UltraViewPagerAdapter获取真实的个数 itemCount = ((UltraViewPagerAdapter)...