Значок элементов подменю Android не отображается

у меня есть это меню

<menu xmlns:android="http://schemas.android.com/apk/res/android" >
    <item
        android:id="@+id/sortFoods"
        android:icon="@drawable/sort_neutral"
        android:title="Sort">
        <menu>
            <item
                android:id="@+id/sortAlphabaticallyAsc"
                android:icon="@drawable/sort_up"
                android:title="Sort Alphabatically ASC"/>
            <item
                android:id="@+id/sortAlphabaticallyDes"
                android:icon="@drawable/sort_down"
                android:title="Sort Alphabatically DES"/>
            <item
                android:id="@+id/sortPriceAsc"
                android:title="Sort By Price ASC"/>
            <item
                android:id="@+id/sortPriceDes"
                android:title="Sort By Price DES"/>
        </menu>
    </item>
</menu>

значок элемента sortFoods отображается, но значки элементов сбоку не отображаются, почему, пожалуйста? Каково решение ? благодарить


person Marco Dinatsoli    schedule 18.02.2013    source источник
comment
Когда вы нажмете на sortFood, вложенный элемент появится в форме диалога.   -  person Jitendra    schedule 18.02.2013
comment
да точно, только название появилось, а иконки нет   -  person Marco Dinatsoli    schedule 18.02.2013


Ответы (1)


проверьте Меню

Icon Menu This is the collection of items initially visible at the bottom of the screen at the press of the MENU key. It supports a maximum of six menu items.These are the only menu items that support icons and the only menu items that do not support checkboxes or radio buttons.

person William Kinaan    schedule 18.02.2013