TabLayout的app属性有哪些
TabLayout的app属性包括:
-
tabGravity :指定选项卡的布局位置,可以是center 、fill 、fill_horizontal 三个值之一。
-
tabMode:指定选项卡的模式,可以是fixed和scrollable两个值之一。
-
tabIndicatorColor:指定选项卡指示器的颜色。
-
tabIndicatorHeight:指定选项卡指示器的高度。
-
tabBackground:指定选项卡的背景色或背景图片。
-
tabTextColor:指定选项卡标题的颜色。
-
tabSelectedTextColor:指定选中选项卡标题的颜色。
-
tabTextAppearance:指定选项卡标题的字体、大小等样式。
-
tabMaxWidth:指定选项卡的最大宽度。
-
tabPaddingStart、tabPaddingEnd、tabPaddingTop、tabPaddingBottom:指定选项卡标题的内边距。
原文地址: https://www.cveoy.top/t/topic/hstq 著作权归作者所有。请勿转载和采集!