app:tabMode=“fixed”
<com.google.android.material.tabs.TabLayout
android:id="@+id/tb_vp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#182E71"
app:tabIndicatorColor="#BBD2F1"
app:tabMode="fixed"
app:tabSelectedTextColor="#0371DD"
app:tabTextColor="#111111" />
或者:
可使用空格占位实现
默认
想要均分