astuetz / PagerSlidingTabStrip

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

Changing Icon colors on selected #302

Open DarrylDJohnson opened 7 years ago

DarrylDJohnson commented 7 years ago

I looked at the documentation for pstsTabSwitch, but it is very confusing. Could you explain how to change the icon color of the selected tab? And is there a way you could create an xml attribute which takes care of the color change for the Icon like pstsTextActivateColor and pstsTextDeactivateColor?

I am using a ViewPagerAdapter.class which implements PagerSlidingTabStrip.IconTabProvider in my MainActivity. In my MainActivity, I have set a ViewPager.OnPageChangeListener already for my FloatingActionButton animation. I'm sure the code goes in there, but the issue is that I am generating the tabs in my ViewPagerAdapter and cannot affect them programmatically in my MainActivity.

TechnologyMaster commented 7 years ago

@DarrylJohnson170 can you show your xml file in which you have use pagerslidingTabStrip.?