简体   繁体   English

ActionBar菜单图标

[英]ActionBar Menu Icons

I'm wondering how can I add icons to the actionbar menu, that means not the actionbar itself but when you press on the menu button you actually opens a spinner with text only. 我想知道如何在操作栏菜单中添加图标,这意味着不是操作栏本身,而是当您按下菜单按钮时,实际上打开了仅包含文本的微调器。 In the Galaxy SIII Samsung somehow implemented in their apps icons in this spinner. 在Galaxy SIII中,三星以某种方式在此微调器中的应用程序图标中实现了。 So, is that possible, and if so how exactly? 那么,这有可能吗?

Thanks 谢谢

You could look into ActionProviders . 您可以研究ActionProviders It will allow you to have your own MenuItem with it's own Action . 它将允许您拥有自己的MenuItem及其自己的Action

Here you have an example (an App Picker menu) 这里有一个示例(“应用选择器”菜单)

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

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