unayx unayx - 3 months ago 15x
Android Question

I am implementing this View Pager Indicator library. https://github.com/JakeWharton/ViewPagerIndicator

I already imported this library in my project but i don't understand how to use it. I have made an android project from starting and then i have imported this library in my project now i am not getting it how to use it.

Kindly help me.

The link of the library:


It's pretty simple, this library has a description: https://github.com/JakeWharton/ViewPagerIndicator#usage

3 steps:

  • add the view to your layout (where do you want to use your fragments).
  • set the adapter and bind the indicator.
  • set OnPageChangeListener if you want (and don't forget to remove it again in onDestroy()).