I was playing around with the new android.support.design.widget.TabLayout
, and found a problem, in the class definition, there are no methods to change the indicator color, and default height.
Doing some research, found that the default indicator color is taken from the AppTheme. Specifically from here:
<item name="colorAccent">#FF4081</item>
Now, in my case, if I change the colorAccent
, it will affect all the other views which uses this value as background color, for example ProgressBar
Now is there any way to change the indicatorColor to other thing besides the colorAccent
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…