0
我使用PagerSlidingTabStrip爲我的選項卡。刪除額外的空間標籤
如何讓我的選項卡適合屏幕寬度?
這是截圖,我想刪除額外的空間。
編輯:
版式文件
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/shop_container"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.astuetz.PagerSlidingTabStrip
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="48dip"
android:background="@drawable/background_tabs"/>
<android.support.v4.view.ViewPager
android:id="@+id/shop_pager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/tabs" />
</RelativeLayout>
應該上傳.xml文件 – Kedarnath
添加了layout xml – AimanB