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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:07:39+00:00 2026-06-13T00:07:39+00:00

I have app which has actionbar containing 1) up button which opens side bar

  • 0

I have app which has actionbar containing
1) up button which opens side bar menu for navigation just like google plus
2) 2 action menu buttons
3) 2 tabs implemented via view pager

I have successfully implementing actionbar using actionbarsherlock and the result is – > enter image description here

enter image description here

i want to implement something like evernote app where up button and tabs are in one row and action menu uses split actionbar . i have icons for tabs so fitting them with up button in one row is not an issue

can someone please point me in right direction as to how i can have have up button in the same horizontal bar as tab by modifying actionbarsherlock lib .

Thanks

  • 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-13T00:07:41+00:00Added an answer on June 13, 2026 at 12:07 am

    //enabling embedded tabs

    //pre-ICS
    if (actionBarSherlock instanceof ActionBarImpl) {
        enableEmbeddedTabs(actionBarSherlock);
    
    //ICS and forward
    } else if (actionBarSherlock instanceof ActionBarWrapper) {
        try {
            Field actionBarField = actionBarSherlock.getClass().getDeclaredField("mActionBar");
            actionBarField.setAccessible(true);
            enableEmbeddedTabs(actionBarField.get(actionBarSherlock));
        } catch (Exception e) {
            Log.e(TAG, "Error enabling embedded tabs", e);
        }
    }
    
    //helper method
    private void enableEmbeddedTabs(Object actionBar) {
        try {
            Method setHasEmbeddedTabsMethod = actionBar.getClass().getDeclaredMethod("setHasEmbeddedTabs", boolean.class);
            setHasEmbeddedTabsMethod.setAccessible(true);
            setHasEmbeddedTabsMethod.invoke(actionBar, true);
        } catch (Exception e) {
            Log.e(TAG, "Error marking actionbar embedded", e);
        }
    }
    

    for further reference –
    https://groups.google.com/forum/#!topic/actionbarsherlock/hmmB1JqDeCk

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

Sidebar

Related Questions

I have an iPad app which has a funky Path-style menu which is present
I have made an iPhone App which has a loginwithFacebook button , the login
I have a page X in my grails app which has a button to
I have a small data collection app which has a single button to start
I have a CodeIgniter app which has a controller to invoke Capistrano. Like so:
I have an ActionBar in an app, and it has navigation tabs embedded in
In my application, I have a screen which has a menu on action bar
I have an app which has split view inside a tab bar, and these
I have an app which has a map and some POI on it. I'm
I have an app which has different app identifier for iphone and ipad and

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.