我正在使用来自新的android.support.design.widget包的TabLayout。
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:tabGravity="fill"
app:tabIndicatorColor="@android:color/white"
app:tabMode="fixed" />
但在平板电脑上,它们看起来像这样: 如何拉伸它们以填满整个宽度。谢谢。