简体   繁体   English

Android Menu在操作栏中只有2个项目

[英]Android Menu just 2 items in actionbar

I want to display menu items in the actionbar of my app. 我想在应用程序的操作栏中显示菜单项。 The problem is: I have an item "Login" and an item "Save username?" 问题是:我有一个项目“登录”和一个项目“保存用户名?” (<-- is checkable). (<-是可检查的)。 I want the "Login" display as it is in the actionbar and the "Save username?" 我希望在操作栏中显示“登录”,并显示“保存用户名?”。 in a "..." How is this possible? 在“ ...”中这怎么可能? I see it like in Whatsapp, but I don't know how to get this "..." and store items in it 我在Whatsapp中看到了它,但是我不知道如何获取此“ ...”并将其存储在其中

If your phone has a hardware menu button, you won't be able to able to see the vertical ellipsis. 如果您的电话具有硬件菜单按钮,则您将无法看到垂直省略号。 Instead, press the menu button and the remaining action bar items should show up. 而是,按菜单按钮,其余的操作栏项目应显示出来。

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

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