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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:18:16+00:00 2026-06-12T06:18:16+00:00

I have an application in which I’ve implemented tab navigation between fragments using Action

  • 0

I have an application in which I’ve implemented tab navigation between fragments using Action Bar (specifically ActionBarSherlock). In one particular fragment I’m using to display a list of messages, I’d like to use something like spinner widget to select between an ‘Inbox’ and an ‘Outbox’. I need the selected option to appear persistent in order for the user to be able to tell what ‘box’ they’re looking at.

It’s simple enough to do this using options menu by using Fragment.setHasOptionsMenu,and I could perform the same action doing so. However I’m wondering if it’s possible for fragments to participate in populating the Action Bar with a navigation widget the same way we can with option menu items. I have checked the Fragment class but I couldn’t find anything that might help.

  • 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-12T06:18:17+00:00Added an answer on June 12, 2026 at 6:18 am

    It sounds like what you want in the case of your Inbox/Outbox is NAVIGATION_MODE_LIST, but you’re already using NAVIGATION_MODE_TABS for navigation. I have two suggested paths:

    1. You could make your Inbox/Outbox fragments be part of a different activity than the one with your tabular navigation. Then you could use NAVIGATION_MODE_LIST on that activity.
    2. You’ll need to create your own navigation between Inbox/Outbox.

    As far as I know, you can’t use both tabs and lists on the actionbar. You’ll have to separate them out so you can use tabs in one case, lists in another, or create a custom solution.

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

Sidebar

Related Questions

I have an application which have a system add button the navigation bar .on
I have application in which i have create tab-bar dynamically. Now i want to
I have an application which serves more than one website. Similar to Stack Exchange,
I have an application which may only have one instance of itself open at
I have application which can export slides to PowerPoint. I'm using Microsoft.Office.Interop.PowerPoint.dll . This
I have an application which generates PDFs. Now I'm using Apache FOP just for
I have application implemented which having the SQL Server 2008 database at back end.
I have an application which extracts data from an XML file using XPath. If
We have an application which needs to use Direct3D. Specifically, it needs at least
I have application which uses fragments. Depending on screen size and orientation I'm displaying

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.