Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Question regarding SlidingTabLayout #5

Open
gomeskingsley opened this issue May 6, 2015 · 1 comment
Open

Question regarding SlidingTabLayout #5

gomeskingsley opened this issue May 6, 2015 · 1 comment

Comments

@gomeskingsley
Copy link

I Saw your tutorial #27 Android SlidingTabLayout With Icons: Android Tutorials.

My tab Strip looks like :
A | B | C => where A,B,C are images.
For the second Tab "B" I have 3 sets of images img1, img2, img3.
Based on certain condition I want to change the image for Tab "B" in "onPageChangeListerner" .

How to achieve this behavior?

@SilverFoxA
Copy link

if you have already set the onPageChangeListener then with in that you will get the position of the page, so get the page position where you are setting the tab name and use a switch case with the parameter as position that you have received.
I think that should work

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

No branches or pull requests

2 participants