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

Change Background color tab and Icon color when is selected #257

Open hsmedinar opened 6 years ago

hsmedinar commented 6 years ago

Hi,

Please is there any way to change background color of tab and icon color when is selected?. I am trying to change bg + icon when the users selected a tab, Currently I have a custom tab with TintableImageView just like your example, but now I would like to change bg color too. Initial set a drawable for stl_defaultTabBackground property but didn't work. I appreciate any help

hsmedinar commented 6 years ago

Solved

set a selcector as background in the custom tab