JakeWharton / ViewPagerIndicator

Paging indicator widgets compatible with the ViewPager from the Android Support Library and ActionBarSherlock.
http://viewpagerindicator.com
10.14k stars 4.01k forks source link

onClick ViewPagerIndicator #371

Open hientm1 opened 9 years ago

hientm1 commented 9 years ago

I got something just want to ask the developer. That is i want to click on 1 indicator ant the viewpager will show the fragment at the same position

For example: if i use the circleIndicator, when i click the second circle the viewpager will scroll to the second page. If i press the 4th indicator the pager will scroll to the 4th page.

I dont know how can we achieve that? If that is doable can i ask how to do that :) thanks

pivinci commented 9 years ago

ViewPagerIndicator don't have this feature. However, you can take a look at this request for your requirement. https://github.com/JakeWharton/ViewPagerIndicator/pull/321

hientm1 commented 9 years ago

Thank for your answer @pivinci :) i really appreciate that :) thanks :+1: