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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:23:25+00:00 2026-06-13T09:23:25+00:00

Does anyone know the style resource to use for the split action bar when

  • 0

Does anyone know the style resource to use for the split action bar when using sdk version 14 android:uiOptions="splitActionBarWhenNarrow" ?

For the normal ActionBar I can use

<item name="android:actionBarStyle">@style/MyActionBar</item>

But this does not automatically overflow to the split bar at the bottom.

I have tried

    <item name="android:actionBarSplitStyle">@style/MyActionBar</item>
    <item name="android:actionBarTabBarStyle">@style/MyActionBar</item>

But they both have no effect on the Galaxy Nexus

  • 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-13T09:23:26+00:00Added an answer on June 13, 2026 at 9:23 am

    This answer is basically niko34’s but in a little bit more detail. Currently I have both the top actionbar and the lower actionbar (the lower actionbar is more properly named as the split actionbar) styled the same, but you’ll see it’s pretty darn simple to style them differently. I am using ActionBarSherlock v4.2.0, and have tested and run this flawlessly on both a Samsung Galaxy S3 running Jelly Bean and an HTC Droid Incredible running Gingerbread.

    AndroidManifest.xml

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="..."
        android:versionCode="1"
        android:versionName="0.1" >
    
        <uses-sdk
            android:minSdkVersion="10"
            android:targetSdkVersion="16" />
    
        <application
            android:icon="@drawable/launcher"
            android:label="@string/app_name" >
            <activity
                android:label="@string/main_activity_title"
                android:name=".MainActivity"
                android:screenOrientation="portrait"
                android:theme="@style/Theme.Styled"
                android:uiOptions="splitActionBarWhenNarrow" >
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
        </application>
    </manifest>
    

    res/values/themes.xml

    <?xml version="1.0" encoding="utf-8"?>
    <resources xmlns:android="http://schemas.android.com/apk/res/android">
        <style name="Theme.Styled" parent="Theme.Sherlock.Light.DarkActionBar">
            <item name="actionBarStyle">@style/Widget.Styled.ActionBar</item>
            <item name="android:actionBarStyle">@style/Widget.Styled.ActionBar</item>
        </style>
        <style name="Widget.Styled.ActionBar" parent="Widget.Sherlock.Light.ActionBar.Solid.Inverse">
            <item name="background">@drawable/bg_actionbar</item>
            <item name="android:background">@drawable/bg_actionbar</item>
            <item name="backgroundSplit">@drawable/bg_actionbar</item>
            <item name="android:backgroundSplit">@drawable/bg_actionbar</item>
        </style>
    </resources>
    

    Here you can see how I’m referencing @drawable/bg_actionbar a couple of times. That is an xml file that is located in the res/drawable directory. Below is the source of that file.

    res/drawable/bg_actionbar.xml

    <?xml version="1.0" encoding="utf-8"?>
    <bitmap xmlns:android="http://schemas.android.com/apk/res/android"
        android:dither="true"
        android:src="@drawable/bg_tile"
        android:tileMode="repeat" />
    

    Here, android:src="@drawable/bg_tile" is just referencing my bg_tile.png file, which is located in res/drawable-hdpi, res/drawable-ldpi, res/drawable-mdpi, and res/drawable-xhdpi.

    So all of this was probably more information than necessary, but it’s better than not having enough! 🙂

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

Sidebar

Related Questions

Does anyone know of a tool that I can use to find explicit C-style
Does anyone know where some Spring style integration images can be found for use
Does anyone know how to style YUI Tabview component [1] so it will look
Does anyone know of a Java library that provides support for the ${var} style
Does anyone know a script which would wrap old Products namespace style Plone add-on
Does anyone know the syntax to use to add pattern styles to the cell
Does anyone know of any websites, or (preferably) downloadable packages that you can use
Does anyone know how to create a wpf Style in code behind, I can't
Does anyone know how I can style dynamic elements created via the DOM method
I am using the XamGrid by Infragistics (not their XamDataGrid). Does anyone know how

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.