静态修改
<android.support.design.widget.TabLayout
android:id="@+id/synthesize_tablayout"
android:layout_width="match_parent"
<!--(1)tab的高度-->
android:layout_height="wrap_content"
<!--(2)背景颜色-->
android:background="#ecebeb"
<!--(3)tab标签的text初始颜色-->
app:tabTextColor="#8e8d8d"
<!--(4)tab标签的text选中颜色-->
app:tabSelectedTextColor="#08b110"
<!--(5)索引条的颜色-->
app:tabIndicatorColor="#08b110"
<!--(6)索引条的的高度-->
app:tabIndicatorHeight="15dp"
<!--(7)tab标签是否水平滑动或者充满-->
app:tabMode="scrollable(fixed)"
<!--(8)使用系统的风格设置tab标签的text字体大小-->
app:tabTextAppearance="@android:style/TextAppearance.Holo.Large"/>