astuetz / PagerSlidingTabStrip

An interactive indicator to navigate between the different pages of a ViewPager
139 stars 44 forks source link

TabBackground issue #241

Open zoumy opened 9 years ago

zoumy commented 9 years ago

The indicator couldn't be seen when set TabBackground color.

    tabs.setIndicatorColor(Color.parseColor("#ffffff"));

    tabs.setSelectedTextColor(Color.parseColor("#ffffff"));

    tabs.setTabBackground(R.color.title_bar_background_color); 
mohsenmbcom commented 9 years ago

You must use a drawable reference, like this : R.drawable.back

azizimusa commented 8 years ago

in xml use android:background . It is working on my case, both tab background and indicator color are present.