Skip to content

Instantly share code, notes, and snippets.

@tunjid
Created October 28, 2018 17:06
Show Gist options
  • Save tunjid/e52b8fe2e94237dbfba415723774d852 to your computer and use it in GitHub Desktop.
Save tunjid/e52b8fe2e94237dbfba415723774d852 to your computer and use it in GitHub Desktop.
ViewPagerIndicatorAnimator indicatorAnimator = ViewPagerIndicatorAnimator.builder()
.setIndicatorWidth(indicatorSize)
.setIndicatorHeight(indicatorSize)
.setIndicatorPadding(indicatorPadding))
.setInActiveDrawable(R.drawable.ic_circle_24dp)
.setActiveDrawable(R.drawable.ic_doggo_24dp)
.setGuideLine(root.findViewById(R.id.guide))
.setContainer((ConstraintLayout) root)
.setViewPager(viewPager)
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment