Tablayout文字个数不同导致文字大小不一致
<com.google.android.material.tabs.TabLayout
app:layout_constraintTop_toBottomOf="@id/tb_salesman_performance"
app:layout_constraintBottom_toTopOf="@id/vp_salesman_performance"
android:id="@+id/tl_salesman_performance"
android:layout_width="match_parent"
android:layout_height="54dp"
android:background="@null"
app:tabIndicatorColor="@android:color/white"
app:tabMode="fixed"
app:tabPaddingEnd="-1dp"
app:tabPaddingStart="-1dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
app:tabSelectedTextColor="@android:color/white"
app:tabTextAppearance="@style/MyTabLayoutAppearance"
app:tabTextColor="#99FFFFFF" />
<!-- tabLayout主题 -->
<style name="MyTabLayoutAppearance" parent="TextAppearance.Design.Tab">
<item name="textAllCaps">true</item>
<item name="android:textAllCaps">true</item>
<item name="android:textSize">18sp</item>
</style>
完美!