如何将Android上的三点按钮更改为其他按钮 [英] How to change three dots button on android to other button

查看:191
本文介绍了如何将Android上的三点按钮更改为其他按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将Android上的三点按钮更改为另一个按钮,即添加"按钮.怎么做?我已经更改了在我的可绘制对象中设置按钮的位置,但是它会一直提示三点按钮.

I wanna change the three dots button on Android to other button which is an "Add" button. How to do it? I have changed set the button in my drawable, but it keep prompt the three dot button.

谢谢

推荐答案

对不起,我无法作为评论回复,但我猜测您要更改操作栏溢出菜单图标.如果是这样,您可以在 styles.xml 中进行.

Sorry i can't reply as a comment, but i'm guessing you want to change the actionbar overflow menu icon. If so you can do it in 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:actionOverflowButtonStyle">@style/MyActionButtonOverflow</item>
</style>

<!-- Style to replace actionbar overflow icon. set item 'android:actionOverflowButtonStyle' in AppTheme -->
<style name="MyActionButtonOverflow" parent="android:style/Widget.Holo.Light.ActionButton.Overflow">
    <item name="android:src">@drawable/ic_launcher</item>
</style>

原始帖子:如何在操作中更改选项菜单图标吧?

这篇关于如何将Android上的三点按钮更改为其他按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆