astuetz / PagerSlidingTabStrip

An interactive indicator to navigate between the different pages of a ViewPager
139 stars 44 forks source link

Disable page sliding #208

Open MeenaxiD opened 9 years ago

MeenaxiD commented 9 years ago

Can we disable page sliding in PagerSlidingTabStrip ? I am using PagerSlidingTabStrip where tabs are created dynamically in my example. On each fragment there are tow buttons

  1. Chapter wise analysis
  2. Rank wise analysis

What i want is when user click on Rank wise analysis Sliding should disable and tabs get hide and when click on Chapter wise analysis tabs should visible again and sliding should also enable. How to achieve this? Tabs hide and show is working properly but am not able to make slide disable.

odelot commented 8 years ago

Hi, probably you had it done now. But for others that arrives here with the same question:

To disable swipe between pages, you should extends viewpager http://stackoverflow.com/questions/9650265/how-do-disable-paging-by-swiping-with-finger-in-viewpager-but-still-be-able-to-s

if you want to disable swipe in the tabs (instead of hide it), you shoud extend it as well https://github.com/astuetz/PagerSlidingTabStrip/issues/94