1、前言如题
TabLayout设置tab的时候文字默认居中,在TabLayout布局增加以上代码。
tab选中文字加粗,需要重写TabLayout的customview进行设置。
app:tabMaxWidth="0dp" app:tabGravity="fill" app:tabMode="fixed"