ogaclejapan / SmartTabLayout

A custom ViewPager title strip which gives continuous feedback to the user when scrolling
Apache License 2.0
7.09k stars 1.34k forks source link

how can set text upon tabindicator? #145

Closed MarnoDev closed 8 years ago

MarnoDev commented 8 years ago

when I set "app:stl_defaultTabBackground" in darkcolor ,the indicator is under tabbackground, but if I set "app:stl_drawDecorationAfterTab="true"",the tab_text will under indicator,how can I fix that?

ogaclejapan commented 8 years ago

Hi, @MarnonLee I'm sorry late reply. I’ve been busy lately at work :P

app:stl_defaultTabBackground should be used as a touch feedback. So, if you want to paint a single(no selector) color, it should be specified in the background of the SmartTabLayout.

<com.ogaclejapan.smarttablayout.SmartTabLayout
    ...
    android:background="@color/darkcolor"
    ...