diff --git a/OsmAnd/src/net/osmand/plus/views/controls/PagerSlidingTabStrip.java b/OsmAnd/src/net/osmand/plus/views/controls/PagerSlidingTabStrip.java index 4cb8a51eef..3cb64f42e3 100644 --- a/OsmAnd/src/net/osmand/plus/views/controls/PagerSlidingTabStrip.java +++ b/OsmAnd/src/net/osmand/plus/views/controls/PagerSlidingTabStrip.java @@ -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