如何删除在操作栏共享按钮的边界? [英] How to remove the border for Share button in Action Bar?
本文介绍了如何删除在操作栏共享按钮的边界?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有一个看图片
这是分享按钮怎么看起来像在行动吧。
This is how Share button looks like in action bar.
这里的code我在菜单的xml文件是:
Here's the code I use in menu xml file:
<item
android:id="@+id/menu_item_share"
android:showAsAction="ifRoom"
android:title="Share"
android:actionProviderClass=
"android.widget.ShareActionProvider" />
是否可以删除边框或改变其颜色?
Is it possible to remove that border or change its color?
推荐答案
您需要使用自定义背景。
You need to use custom background.
这可能有帮助:
https://developer.android.com/training/basics/actionbar/styling.html
这篇关于如何删除在操作栏共享按钮的边界?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文