unayx unayx - 1 year ago 95
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:

Answer Source

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()).
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download