简体   繁体   English

Android-ActionBar-隐藏溢出菜单?

[英]Android - ActionBar - hide overflow menu?

I want to hide this overflow menu: a busy cat http://cdn.intertech.com/PostingImages/Android-Action-Bar-from-the-Options-Menu_E1C5/image_7.png 我想隐藏此溢出菜单: 忙碌的猫http://cdn.intertech.com/PostingImages/Android-Action-Bar-from-the-Options-Menu_E1C5/image_7.png

I can hide it, when I set targetSdkVersion="14". 当我设置targetSdkVersion =“ 14”时,我可以将其隐藏。 But I don't want that. 但是我不想要那个。 I don't want to give a target version. 我不想给出目标版本。

I also tried this here (/res/values/styles.xml): 我也在这里(/res/values/styles.xml)尝试过:

<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
    <!-- All customizations that are NOT specific to a particular API-level can go here. -->
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowFullscreen">true</item>
</style>

Not working. 不工作 I see the 3 dots menu. 我看到了3点菜单。

您是否已经在菜单的xml文件中尝试过android:showAsAction="never"

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

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