K
K
Konstantin Lipatov2018-07-23 11:12:54
Android
Konstantin Lipatov, 2018-07-23 11:12:54

How to reduce spacing between page headers in PageTabStrip?

I am using ViewPager with PageTabStrip to navigate between pages. But the distance between the headers in the standard implementation is quite large, how can it be reduced?
Here is the ViewPager code

<android.support.v4.view.ViewPager
        android:id="@+id/pager"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <android.support.v7.widget.AppCompatImageView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:src="@drawable/image_background"/>
            <android.support.v4.view.PagerTabStrip
                android:id="@+id/pagerTabStrip"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="top"
                android:background="@color/yellow"
                android:paddingTop="8dp"
                android:paddingBottom="8dp">
            </android.support.v4.view.PagerTabStrip>
    </android.support.v4.view.ViewPager>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question