jpardogo / PagerSlidingTabStrip

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

Fixed layout glitch when using isPaddingMiddle #144

Closed Vkeat660 closed 8 years ago

Vkeat660 commented 8 years ago

This fixes a brief glitch that causes the paper tabs to start out left aligned for a couple milliseconds.

I believe this is because it has to do another layout pass to pick up the changes made with onGlobalLayoutListener, but when moved to onLayout it behaves properly.