astuetz / PagerSlidingTabStrip

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

Change color on tap of tab strip #263

Open msnpr567 opened 8 years ago

msnpr567 commented 8 years ago

Hi.. can we change colour of tab strip on tap. as of know its colour is light blue irrespective of border colour. Can we make border colour and tap colour same.

cyberrob-zz commented 8 years ago

Accroding to the doc this is what you want: pstsTabBackground Background drawable of each tab, should be a StateListDrawable

Define your own selector drawable just like this default one: https://github.com/astuetz/PagerSlidingTabStrip/blob/3f4738eca833faeca563d93cd77c8df763a45fb6/library/res/drawable/background_tab.xml