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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:21:33+00:00 2026-06-15T06:21:33+00:00

I have an actionbar with a logo, a title, 2 tabs and a search

  • 0

I have an actionbar with a logo, a title, 2 tabs and a search function.
On a phone (3.5″) everything works fine.
The actionbar has 2 lines. The logo title and the search function appear on the first line and the tabs apear on the second line.
enter image description here

On my tablet (7″) everyting is shown on a single line. But the tabs will be convert to a list when i click the search icon.
tabs as list navigation

How can i split the (sherlock)actionbar in 2 lines on my 7″ tabblet?
Or is there an other way to solve this problem?

  • 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-15T06:21:34+00:00Added an answer on June 15, 2026 at 6:21 am

    I found a solution to separate the tabs in code.

    private void embeddedTabs(Object actionBar, Boolean embed_tabs) {
    
    
    try {
    
            if (actionBar instanceof ActionBarWrapper) {
                //ICS and forward
                try {
                    Field actionBarField = actionBar.getClass().getDeclaredField("mActionBar");
                    actionBarField.setAccessible(true);
                    actionBar = actionBarField.get(actionBar);
                } catch (Exception e) {
                    Log.e("", "Error enabling embedded tabs", e);
            }
        }
        Method setHasEmbeddedTabsMethod = actionBar.getClass().getDeclaredMethod("setHasEmbeddedTabs", boolean.class);
        setHasEmbeddedTabsMethod.setAccessible(true);
        setHasEmbeddedTabsMethod.invoke(actionBar, embed_tabs);
    } catch (Exception e) {
        Log.e("", "Error marking actionbar embedded", e);
    }
    

    }

    But now I have a new problem. The tabs don’t fill the tabbar completely.
    Actionbar tabs don’t fill the tabbar

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

Sidebar

Related Questions

I have a system of actionbar Tabs with ABS. The first tab is a
I have an FragmentActivity that uses the ActionBar Tabs, one of the tabs has
I have an actionbar which has a title and few buttons. I want to
I have an ActionBar in an app, and it has navigation tabs embedded in
I have an app that uses the ActionBar with tabs in combination with Fragments.
I have two tabs on my ActionBar and four pages in a ViewPager. I
I have a collapsed search EditView menu within my Actionbar (ActionbarSherlock). When setShowAsAction method
In my app I have the dropdown enabled in the ActionBar. The user has
I have app which has actionbar containing 1) up button which opens side bar
I have two tabs using tabhost. One tab having activity extends ExpandableListActivity. It works

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.