Update tabs

This commit is contained in:
Victor Shcherb 2015-03-03 17:57:24 +02:00
parent 2d20d569d5
commit c70103ba60

View file

@ -176,6 +176,7 @@ public class PagerSlidingTabStrip extends HorizontalScrollView {
//In case we have the padding they must be equal so we take the biggest
padding = Math.max(paddingLeft, paddingRight);
// get custom attrs
a = context.obtainStyledAttributes(attrs, R.styleable.PagerSlidingTabStrip);
@ -373,12 +374,12 @@ public class PagerSlidingTabStrip extends HorizontalScrollView {
@Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
if (isPaddingMiddle || padding > 0) {
// if (isPaddingMiddle || padding > 0) {
//Make sure tabContainer is bigger than the HorizontalScrollView to be able to scroll
tabsContainer.setMinimumWidth(getWidth());
//Clipping padding to false to see the tabs while we pass them swiping
setClipToPadding(false);
}
// }
if (tabsContainer.getChildCount() > 0) {
tabsContainer