Closed MisoraRin closed 4 years ago
tab_indicator_color
属性是给tab_indicator_drawable
属性指定的Drawable
着色.
如果要设置纯色指示器,请使用tab_indicator_solid_color
.
纯色渐变指示器tab_indicator_gradient_start_color
tab_indicator_gradient_end_color
.
默认tab_select_color
tab_deselect_color
只处理TextView
, 如果要支持ImageView
请调用com.angcyo.tablayout.DslTabLayout#configTabLayoutConfig
方法, 重写onGetIcoStyleView
属性, 返回想要变色的ImageView
即可.
这几个属性对imageview不生效,只对文字有效,指示器也没有显示 这是我的xml <com.angcyo.tablayout.DslTabLayout android:id="@+id/dslTabLayout" android:layout_width="match_parent" android:layout_height="48dp" app:layout_constraintBottom_toBottomOf="parent" app:tab_draw_indicator="true" app:tab_indicator_color="@color/colorPrimary" app:tab_item_is_equ_width="true" app:tab_select_color="@color/colorPrimary" app:tab_deselect_color="#626262">