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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:11:56+00:00 2026-06-05T23:11:56+00:00

I want to implement an action bar for my own android app like the

  • 0

gmail app in android

I want to implement an action bar for my own android app like the one on the bottom on the picture.
I searched a lot, But a lot of errors appears.

I tried some libraries for some help like : Greendroid and ActionBarSherlock but none of them work, Or I couldn’t use them perfectly! ..

I’m really in need for that action bar in my app.

I will be grateful if someone could help me with some Samples or codes or explain it to me.

Thanks a lot 🙂 ..

  • 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-05T23:11:57+00:00Added an answer on June 5, 2026 at 11:11 pm

    You can use a SplitActionBar. Your application suppost to be running on Android 4.0 (API level 14) or higher

    the fix is to always have an item in the top bar that prevents the bottom content from ever fitting in there, thus forcing everything into the bottom bar. Look at this sample project from another user:

    <?xml version="1.0" encoding="utf-8"?
    <manifest package="com.commonsware.android.actionbarbc"
              xmlns:android="http://schemas.android.com/apk/res/android">
    
      <application android:hardwareAccelerated="true"
                   android:icon="@drawable/cw"
                   android:label="@string/app_name">
        <activity android:label="@string/app_name"
                  android:name=".InflationDemo"
                  android:uiOptions="splitActionBarWhenNarrow">
          <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
          </intent-filter>
        </activity>
      </application>
      <uses-sdk android:minSdkVersion="4"
                android:targetSdkVersion="11" />
      <supports-screens android:anyDensity="true"
                        android:largeScreens="true"
                        android:normalScreens="true"
                        android:smallScreens="true"
                        android:xlargeScreens="true" />
    </manifest>
    

    He used this code for his activity:

    private void setupActionBar() {
    ActionBar actionBar = getActionBar();
    
    ViewGroup v = (ViewGroup)LayoutInflater.from(this)
        .inflate(R.layout.conversation_list_actionbar, null);
    actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM,
            ActionBar.DISPLAY_SHOW_CUSTOM);
    actionBar.setCustomView(v,
            new ActionBar.LayoutParams(ActionBar.LayoutParams.WRAP_CONTENT,
                    ActionBar.LayoutParams.WRAP_CONTENT,
                    Gravity.CENTER_VERTICAL | Gravity.RIGHT));
    
    mUnreadConvCount = (TextView)v.findViewById(R.id.unread_conv_count);
    }
    

    http://developer.android.com/guide/topics/ui/actionbar.html#SplitBar

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

Sidebar

Related Questions

I want to implement a Facebook updates(user action and notifications) on my web application
I am trying to implement an action bar within an activity. Is it possible
I want to implement a Next feature in my app. The button appears on
I want to create a app with only one view(TestViewController.h TestViewController.m). (no Tabbar, no
I'm developing an App using Google's UI design guidelines, so I want to implement
I have an app with a tab bar with two tabs. One tab displays
I found the article regarding what I want to implement at Queue implementation in
I'm trying to implement a navigation controller with some hierarchical views. I want to
I'd like to implement in a Struts2 web application some sort of url fallback
I recently reworked one of my own libraries to try out separating interface from

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.