Android - custom tab bar icon on ActionBarSherlock produces error

Monday, May 12, 2014

I'm using ActionBarSherlock and HoloEverywhere in this project. The Main.xml is pretty simple and looks like this:



<menu xmlns:android="http://ift.tt/nIICcg" >

<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="ifRoom|withText"
android:title="@string/action_info_settings"
android:icon="@android:drawable/ic_menu_customsettings"/>

</menu>


I have ic_menu_customsettings.png in drawable-mdpi, drawable-hdpi, and drawable-xhdpi. I'm getting the following error:



Error: No resource found that matches the given name (at 'icon' with value '@android:drawable/ic_menu_customsettings').


Am I supposed to do something more than put the png files in those folders to make them accessible by the ActionBar?







http://ift.tt/1jTk8yg