Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Changing Icon colors on selected #302

Open
DarrylDJohnson opened this issue Mar 2, 2017 · 1 comment
Open

Changing Icon colors on selected #302

DarrylDJohnson opened this issue Mar 2, 2017 · 1 comment

Comments

@DarrylDJohnson
Copy link

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
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants