简体   繁体   English

动作溢出,如Nexus 4底部的按钮

[英]Action overflow like button at the bottom in Nexus 4

在此处输入图片说明

I have designed this simple login screen. 我设计了这个简单的登录屏幕。 In the LoginActivity, I have not declared onCreateOptionsMenu or onPrepareOptionsMenu . 在LoginActivity中,我没有声明onCreateOptionsMenuonPrepareOptionsMenu

But still I am getting overflow like button at the screen bottom right as shown in the below picture. 但是仍然 右下角的按钮一样溢出 ,如下图所示。 When I click on it, it does not do anything. 当我单击它时,它不会执行任何操作。

If it were an Action item it would be in the Action Bar area not along with the device's native soft buttons. 如果它是一个动作项 ,它将与设备的本机软按钮一起位于动作栏区域中。

Does anybody know how can it be resolved? 有人知道如何解决吗?

您需要在AndroidManifest.xml设置android:targetSdkVersion="14"或更高版本,以摆脱“耻辱菜单”。

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

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