Android TabLayout tabPaddingTop and tabPaddingBottom not being removed
请参阅上述问题.
即使我将我的设计库更新为“23.2.0”,Tab布局也搞砸了.
下图是我的标签布局.
Xml部分: –
<android.support.design.widget.TabLayout android:id="@+id/sliding_tabs" android:layout_width="match_parent" android:layout_height="wrap_content" app:tabIndicatorColor="@android:color/white" app:tabIndicatorHeight="@dimen/dp2" app:tabMode="fixed" app:tabSelectedTextColor="@android:color/white" app:tabTextAppearance="@style/MyCustomTabTextAppearance" />
样式xml: –
<resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/color_156084</item> </style> <style name="MyCustomTabTextAppearance" parent="TextAppearance.Design.Tab"> <item name="android:textSize">@dimen/sp14</item> <item name="android:textColor">@android:color/white</item> <item name="textAllCaps">false</item> </style>
我已将padding设置为-1dp,甚至将tabGravity填充,但没有任何工作.