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

  • Home
  • SEARCH
  • 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 6628305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:06:55+00:00 2026-05-25T22:06:55+00:00

I am trying to implement a action bar in my app.I followed the method

  • 0

I am trying to implement a action bar in my app.I followed the method from this link http://developer.android.com/guide/topics/ui/actionbar.html If I keep the tragetSdkversion>= 11,Then it works fine. But If I add min sdk version>=11 then the buttons shows up as part of the options menu and not in the action bar. This happens for the tablet.please help

This is part of my manifest

<uses-sdk android:minSdkVersion="4" 
        android:targetSdkVersion="11"/>

This is my menu.xml

<menu xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:id="@+id/edit"
        android:title="Edit"
        android:icon="@drawable/icon"
        android:showAsAction="ifRoom" />

    <item android:id="@+id/renarration"
        android:title="Renarration"
        android:icon="@drawable/icon" 
        android:showAsAction="ifRoom"/>

    <item android:id="@+id/renarration1"
        android:title="Renarration"
        android:icon="@drawable/icon" 
        android:showAsAction="ifRoom"/>

    <item android:id="@+id/renarration2"
        android:title="Renarration"
        android:icon="@drawable/icon" 
        android:showAsAction="ifRoom"/>
</menu>
  • 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-05-25T22:06:56+00:00Added an answer on May 25, 2026 at 10:06 pm

    In the same link you’re referring it says,

    The Action Bar is included by default in all activities that target Android 3.0 or greater. Any application that targets Android 3.0 automatically receives this theme. An application is considered to “target” Android 3.0 when it has set either the android:minSdkVersion or android:targetSdkVersion attribute in the element to “11” or greater.

    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.helloworld"
      android:versionCode="1"
      android:versionName="1.0">
    <uses-sdk android:minSdkVersion="4"
              android:targetSdkVersion="11" />
    <application ... >
        ...
    </application>
    

    In this example, the application requires a minimum version of API Level 4 (Android 1.6), but it also targets API Level 11 (Android 3.0). This way, when the application is installed on a device running Android 3.0 or greater, the system applies the holographic theme to each activity, and thus, each activity includes the Action Bar.

    However, if you want to use Action Bar APIs, such as to add tabs or modify Action Bar styles, you need to set the android:minSdkVersion to “11”, so you can access the ActionBar class.

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

Sidebar

Related Questions

I'm trying to implement an action bar in my app. I'm trying to do
I am trying to implement an action bar within an activity. Is it possible
I'm trying to implement routing such as the following: posts/535434/This-is-a-post-title posts/tagged/tags+here // Matches {controller}/{action}/{id}
I'm trying to implement a seek bar preference into my live wallpaper settings. The
I'm trying to implement a progress bar in WPF. I am looping through a
I'm trying to implement a UI structured like in the Tweetie app, which behaves
I have implemented the action bar (not the quick action bar) in my app.
I'm trying to implement token-based authorization for an Asp.Net MVC2 app, and I think
i am trying to implement an action sheet that contains a picker view and
I'm trying to port an iOS app to Android. The original iOS app workflow

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.