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.
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.