如何更改最右边的操作栏的溢出菜单图标,下面的图片中看到的?我的霍洛主题指定默认情况下,这个3排黑栈图标,我想别的东西。我似乎无法找到一个解决方案。我已经看了看http://developer.android.com/guide/topics/ui/menus.html但它似乎并没有借给太大的帮助。
How do i change the Overflow Menu icon on the far right of the action bar as seen in the image below? My Holo theme specifies this 3 row black stack icon by default and i want something else. i can't seem to find a solution for this. I have looked at the documentation on http://developer.android.com/guide/topics/ui/menus.html but it doesn't seem to lend much help.
谢谢!
定义自定义样式。例如,我们称之为 customoverflow
Define a custom style: for example, let's call it customoverflow
.
在这种风格将机器人:SRC
的图片,你想使用。
现在创建父风格 Theme.holo
。
In this style you set android:src
to the picture you would like to use.
Now create a style with parent Theme.holo
.
在这种风格,你需要定义:
In this style you need to define:
<item name="android:actionOverflowButtonStyle">@style/customoverflow</item>
我刚刚测试了这一点,它的工作原理。
I just tested this and it works.
上一篇:从应用程序中使用KSOAP方法Web服务临危空参数应用程序、参数、方法、KSOAP
下一篇:Android的碎片getArguments()返回null碎片、Android、null、getArguments