Tab selector not working on previous tab click when swipe on viewpager

Akshay picture Akshay · Jul 22, 2015 · Viewed 8.2k times · Source

I'm following this example..

I'm having one issue, when I swipe on ViewPager respective fragment appear but when I swipe from from left to right or right to left and select previous Tab the Tab indicator appear on new selected Tab but respective fragment not appear on ViewPager. Please help me, where I'm getting wrong?

Answer

Moinkhan picture Moinkhan · Sep 5, 2015

It was bug in support lib 23.0.0 but it is solved in 23.0.1. First of all update your suppory library using SDK manager from the extras section. and write the following line in app gradle file.

compile 'com.android.support:appcompat-v7:23.0.1' compile 'com.android.support:design:23.0.1'

for your reference

https://developer.android.com/topic/libraries/support-library/revisions.html and read the Changes for Design Support library in Android Support Library, revision 23.0.1 section