Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8391149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:11:03+00:00 2026-06-09T19:11:03+00:00

With the old SwipeyTabs you could just simply use the onSwipeyTabSelected.onSwipeyTabSelected, now android released

  • 0

With the old SwipeyTabs you could just simply use the onSwipeyTabSelected.onSwipeyTabSelected, now android released at june 2012 the PageTabStrip, which it is supossed to ease the work, and in fact it does for simple cases. But i haven’t found any method that in fact allows me to detect the Selection of a tab, in example:

_______________________________
| |Tab1| Tab2|
_______________________________

if i swipe to the right and the Tab2 got selected:

_______________________________
|Tab1 |Tab2| Tab3|
_______________________________

How can i detect/trigger an event in my activity containing the PagerTabStrip that this tab was selected?

P.S. Forgive me the crappy ascii art 😀

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:11:04+00:00Added an answer on June 9, 2026 at 7:11 pm

    Since your PagerTabStrip is tied to a ViewPager, and changes the contents of the ViewPager, you can register a ViewPager.OnPageChangeListener to the ViewPager via setOnPageChangeListener().

    If your argument is “well, I want to do different things if they swipe via the tabs than if they swipe the body of the pager”, then I’m not a fan of that UX.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

With old datastore I've used keys. Now I have to use ids (taken from
An old college of mine made this fancy paperdoll in flash, which i now
In old mysql code, I had a query below which worked perfectly which is
I got an old injector which was made by me in Delphi 7 and
My Old site is developed in Drupal which is having a Content Type to
Some old code that I just came across: MLIST * new_mlist_link() { MLIST *new_link
The old, C style cvMat matrices could be passed to the cvSave() function for
Old hand at ASP.NET, new to the UpdatePanel. I have a reporting page which
The old version of express had an option to use sass as the CSS
OLD QUESTION (Already answered by Mark - The answer is to use getTag()): Let's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.