I’m trying to add some menu items with icons to a menu.
The items appear but without the icon on the left side of them, it’s just the text…
By the way, I’m using the Holo Light theme…
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/menu_market"
android:title="View on Play Store"
android:icon="@drawable/ic_playstore_colorful"/>
</menu>
Thanx upfront!
Okay so i found this android blog post, http://android-developers.blogspot.com/2012/01/say-goodbye-to-menu-button.html and they mentioned how the whole menu paradigm is changing in ICS and they said to use the actionbar now, requires API 11 or later:
I have this in /res/menu/activity_main XML directory:
And this in source of course:
Works pretty well and looks good.