jpardogo / PagerSlidingTabStrip

An interactive indicator to navigate between the different pages of a ViewPager
2.19k stars 354 forks source link

How to capture click event on each tab? #152

Closed ln206 closed 8 years ago

ln206 commented 8 years ago

Hello,

I want to send an analytic event when user click on each tab. How do I listen to these events? Please let me know, thanks.

jpardogo commented 8 years ago

From README.md :

"5.(Optional) If you use an OnPageChangeListener with your view pager you should set it in the widget rather than on the pager directly.

// continued from above tabs.setOnPageChangeListener(mPageChangeListener);"