在底部栏的Andr​​oid溢出菜单菜单、Andr、oid

2023-09-12 01:57:32 作者:无心者

我试图让操作栏中溢出按钮显示在底部,旁边的BACK / HOME /其他-应用程序的按钮。我假定这将是这种情况,如果我关掉了标题栏,但事实并非如此。我尝试使用Google,但我找不到任何解决办法。

I'm trying to get the overflow button from the action bar to show up in the bottom, next to the back/home/other-apps buttons. I was assuming this would be the case if I turn off the title bar, but it doesn't. I tried googling it, but I can't find any solutions.

谁能给我一个提示?

例如这个程序有它:

For example this app has it:

推荐答案

在你的 AndroidManifest 您必须将targetSdkVersion设置为13或更低版本是这样的:

In your AndroidManifest you have to set the targetSdkVersion to 13 or earlier like this:

<uses-sdk android:targetSdkVersion="13" />

这将迫使ICS在兼容模式下运行你的应用程序,并给你3个点的底部栏的溢出菜单。

That will force ICS to run your app in compatibility mode and give you the 3 dots in your bottom bar for your overflow menu.