增加tab title 字体
This commit is contained in:
parent
f934dd66ae
commit
b143f6a67d
|
|
@ -26,7 +26,7 @@
|
|||
<com.google.android.material.tabs.TabLayout
|
||||
android:id="@+id/tab_layout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
app:tabTextColor="@color/black"
|
||||
app:tabSelectedTextColor="@color/green_39"
|
||||
|
|
@ -37,6 +37,7 @@
|
|||
app:tabRippleColor="@null"
|
||||
app:tabMode="fixed"
|
||||
android:background="@color/transparent"
|
||||
app:tabTextAppearance="@style/MyTabLayoutTextAppearance"
|
||||
>
|
||||
<com.google.android.material.tabs.TabItem
|
||||
android:layout_width="wrap_content"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<style name="MyTabLayoutTextAppearance" parent="TextAppearance.Design.Tab">
|
||||
<item name="android:textSize">17sp</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
Loading…
Reference in New Issue