我已阅读,子菜单中的Android不支持图标。我想知道,这种情况已经改变,或者如果有产生一个子,做支持图标以类似的方式?
I have read that submenus in Android do not support icons. I was wondering if this has changed, or if there is a similar way to produce a "submenu" that does support icons?
目前这是我的子菜单:
Currently This is My Submenu:
下面是XML文件对于它:
Here Is the XML File For It:
<menu>
<item android:id="@+id/facebook_icon"
android:title="Share With Facebook"
android:icon="@drawable/ic_menu_facebook" />
<item android:id="@+id/twitter_icon"
android:title="Share With Twitter"
android:icon="@drawable/ic_menu_twitter" />
</menu>
我希望它看起来像这样(如果您有什么想法我会AP preciate听他们!):
I want it to look like this (If you have any ideas I would appreciate hearing them!):
您可以创建,而不是子菜单自己的对话框,并使它看起来你想要的任何方式。
You can create your own dialog instead of the submenu, and make it look any way you want.