简体   繁体   English

如何在设备链接的底部创建选项菜单

[英]how to create an options menu at the bottom of the device nexus

I have a problem, I would make an application without actionbar but I would still put a options menu. 我有一个问题,我会制作一个没有动作栏的应用程序,但是我仍然会放置一个选项菜单。 On devices that have a physical key, do not show the problem, but on devices like the galaxy nexus, yes. 在具有物理密钥的设备上,没有显示问题,但是在像银河系这样的设备上,是的。 How can I make a options menu that appears in the bottom of the screen? 如何制作显示在屏幕底部的选项菜单? To help you understand I put a picture below. 为了帮助您理解,我在下面放了一张图片。

Thanks in advance for the answers 预先感谢您的回答

rebus 画谜

image: http://img585.imageshack.us/img585/8291/2tzc.jpg 图片: http : //img585.imageshack.us/img585/8291/2tzc.jpg

If you set either minSdkVersion or targetSdkVersion to 11 or higher, the system will not add the legacy overflow button. 如果将minSdkVersion或targetSdkVersion设置为11或更高,则系统将不会添加旧版溢出按钮。

Otherwise, the system will add the legacy overflow button when running on Android 3.0 or higher. 否则,系统将在Android 3.0或更高版本上运行时添加旧版溢出按钮。

The only exception is that if you set minSdkVersion to 10 or lower, set targetSdkVersion to 11, 12, or 13, and you do not use ActionBar, the system will add the legacy overflow button when running your app on a handset with Android 4.0 or higher. 唯一的例外是,如果您将minSdkVersion设置为10或更低,将targetSdkVersion设置为11、12或13,并且您未使用ActionBar,则当在装有Android 4.0或以下版本的手机上运行应用程序时,系统将添加旧版溢出按钮更高。

you have a problem on nexus Since your minSdkVersion or targetSdkVersion is 11 or higher 您的连结有问题,因为您的minSdkVersion或targetSdkVersion为11或更高

To solve your problem Change your targetSdkVersion to 10 解决您的问题将targetSdkVersion更改为10

This will solve the issue with Nexus Devices 这将解决Nexus设备的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM