activity_main_drawer.xml
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:myapp="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android">
<group>
<item
android:id="@+id/portal"
android:icon="@drawable/memu_icon_home_off"
android:title="@string/menu_home"
/>
</group> <!-- show -->
<item android:title="@string/menu_category"
android:icon="@drawable/memu_icon_category_on"
myapp:showAsAction="always"> <!-- not showing! -->
<menu>
<item
android:id="@+id/ct001"
android:title="@string/title_ct001" />
<item
android:id="@+id/ct002"
android:title="@string/title_ct002" />
<item
android:id="@+id/ct003"
android:title="@string/title_ct003" />
<item
android:id="@+id/ct004"
android:title="@string/title_ct004" />
<item
android:id="@+id/ct005"
android:title="@string/title_ct005" />
<item
android:id="@+id/ct006"
android:title="@string/title_ct006" />
<item
android:id="@+id/ct007"
android:title="@string/title_ct007" />
</menu>
</item>
<group>
<item
android:id="@+id/appinfo"
android:icon="@drawable/memu_icon_set_off"
android:title="@string/appinfo"
/>
</group> <!-- show -->
</menu>
我想像这样listlayout
打印
(icon1) home
(icon2) category
category value.....
category value.....
category value.....
category value.....
category value.....
(icon3) app inf
'menu_icon_category_on'(icon2)
此项目的图标不显示(组图标可以看到)
我该如何展示它?