vnshetty
vnshetty

Reputation: 20132

Android default menu button is not visible

in my app the android default menu button is not visible? why? Any help?

enter image description here

Upvotes: 1

Views: 3280

Answers (3)

NguyenDat
NguyenDat

Reputation: 4159

Refer this: On Android Honeycomb how do I add option menu to the home bar at the bottom of the screen?

And this: onCreate Options menu is not showing in android 3.1

You can simple edit target SDK in manifest file to force use SDK of mobile rather than tablet like this:

android:targetSdkVersion="10"

Upvotes: 5

Mark Mooibroek
Mark Mooibroek

Reputation: 7696

Did you hook up a xml menu file to your activity ?

 @Override
 public boolean onCreateOptionsMenu(android.view.Menu menu) {
    getMenuInflater().inflate(R.menu.xmlfilename, (android.view.Menu) menu);
    return true;
}

Upvotes: 0

5hssba
5hssba

Reputation: 8079

Not only should your apps stop relying on the hardware Menu button, but you should stop thinking about your activities using a “menu button” at all.Your activities should provide buttons for important user actions directly in the action bar (or elsewhere on screen). Those that can’t fit in the action bar end up in the action overflow. In order to provide the most intuitive and consistent user experience in your apps, you should migrate your designs away from using the Menu button and toward using the action bar. Ice Cream Sandwich rolls out to more devices, it’s important that you begin to migrate your designs to the action bar in order to promote a consistent Android user experience.See this link

Upvotes: 1

Related Questions