AndroidNewWidgetsDemo icon indicating copy to clipboard operation
AndroidNewWidgetsDemo copied to clipboard

如何设置android.support.design.widget.TabLayout中字体的大小,谢谢

Open lijing1234 opened this issue 8 years ago • 4 comments

lijing1234 avatar Jan 05 '17 08:01 lijing1234

You can check the information form baidu

alan1024 avatar Mar 23 '17 03:03 alan1024

给你个链接吧,http://blog.csdn.net/ming2316780/article/details/51763864,可以解决

lijing1234 avatar Mar 23 '17 05:03 lijing1234

TabLayout xml设置代码如下:

<android.support.design.widget.TabLayout android:id="@+id/tablayout_video" android:layout_width="match_parent" android:layout_height="@dimen/tablayout_height" app:tabBackground="@drawable/tablayout_background" app:tabIndicatorHeight="0dp" app:tabSelectedTextColor="@color/white" app:tabTextAppearance="@style/TabLayoutTextStyle" app:tabTextColor="@color/white" />

app:tabBackground 属性:此处要写一个selector

app:tabTextAppearance 属性:此处要写一个style

lijing1234 avatar Mar 23 '17 05:03 lijing1234

thanks @lijing1234 @alan1024 for your answer!

opengit avatar Apr 05 '17 09:04 opengit