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 9223683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:07:51+00:00 2026-06-18T04:07:51+00:00

I’ve just updated my app to use an ActionBar with navigation tabs and the

  • 0

I’ve just updated my app to use an ActionBar with navigation tabs and the splitActionBarWhenNarrow option, integrated with ViewPager to allow swiping between tabs. The home icon and title in the bar are disabled. It is functionally working on all configurations, but in one case it doesn’t act as I would expect.

When on a smartphone in portrait config, the Action Bar splits with the tabs in the top bar and the menu/action items in the bottom bar. Of course I can select a page by tapping a tab, and when I swipe from page to page the tab selection highlight (underbar) moves to the selected tab. So far so good.

When I turn the device into the landscape position, I now get a single Action Bar at the top. The action and overflow menu icons are at the right, and Android has turned my tabs into a dropdown selector on the left side. This works OK when I use the selector to change pages, but when I swipe from page to page the selector does not change to indicate the current tab.

My code of course does not change depending on configuration, and I set breakpoints to show that onPageSelected is called, which calls bar.setSelectedNavigationItem, causing onTabSelected to be called in turn. So the expected actions are taking place, but the selector in the dropdown does not change.

Any ideas what is going on?

(For what it’s worth, in landscape position on a tablet, I get yet another variant: a single Action Bar with my tabs on the left and action items on the right. In this case, the tab highlight correctly follows when swiping.)

  • 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-18T04:07:52+00:00Added an answer on June 18, 2026 at 4:07 am

    This works OK when I use the selector to change pages, but when I swipe from page to page the selector does not change to indicate the current tab.

    Correct.

    Any ideas what is going on?

    Action bar tabs are sucktastic.

    Specifically, you are running into this bug. If I am reading the Gerrit page correctly, Jake’s patch (or a modified version thereof) has been accepted, so perhaps Android 4.3/5.0 will work properly in this regard.

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

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am confused How to use looping for Json response Array in another Array.
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
I am trying to understand how to use SyndicationItem to display feed which is
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka

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.