Skip to content Skip to sidebar Skip to footer

Why The Pictures/icon Don't Show Up In The Menu?

I followed this tutorial to create a menu but my menu looks differently: How can I create a menu with images? This is my code:
1.  Context menus: Donot support item shortcuts and item icons.
   2. Options menus: The icon menus donot support item check marks and only show the item's condensed title. The expanded menus (only available if six or more menu items are visible, reached via the 'More' item in the icon menu) do not show item icons, and item check marks are discouraged.3. Sub menus: Donot support item icons, or nested sub menus. 

No problem with your code, Problem may be with the API level you are using, but still want to suggest that don't use Menu anymore.


Android no longer requires a dedicated Menu button, some devices don’t have one, and you should migrate away from using it.

Solution 2:

If you use some following attribute in manifest file then it's will be show your icon....

<activityandroid:name=".ui.CategoryActivity"android:label="@string/app_name"
        **android:theme="@android:style/Theme.NoTitleBar"**></activity>

It's work fine for me...:)

**must be enter.

Post a Comment for "Why The Pictures/icon Don't Show Up In The Menu?"