TableLayout的常用属性及含义

app:tabGravity="center"    设置居中对齐
    app:tabIndicatorColor="@color/colorAccent" 下滑线的颜色
    app:tabMode="scrollable"  设置tabLayoout菜单的模式,,,scrollable可以横向滚动
    app:tabSelectedTextColor="@color/colorPrimaryDark"  选中的时候文字的颜色
    app:tabTextColor="@color/colorPrimary"       文本默认的颜色

android.support.design.widget.TabLayout
android:layout_width=”match_parent”
android:layout_height=”40dp”
android:id=”@+id/mytab”
app:tabGravity=”center”
app:tabIndicatorColor=”@color/colorAccent”
app:tabMode=”scrollable”
app:tabSelectedTextColor=”@color/colorPrimaryDark”
app:tabTextColor=”@color/colorPrimary”

你可能感兴趣的:(TableLayout的常用属性及含义)