I'm using ActionBarSherlock. I have a MenuItem, and I want to use a custom selector with only that MenuItem, not the others in the ActionBar. This is the menu code:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/menu_include_location"
android:icon="@drawable/icon_place_selector"
android:showAsAction="always"
android:title="@string/menu_include_location"/>
<item
android:id="@+id/menu_send"
android:icon="@drawable/ic_send"
android:showAsAction="ifRoom|withText"
android:title="@string/menu_send"/>
</menu>
Here is the icon_place_selector.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/location_place" android:state_pressed="false"/>
<item android:drawable="@drawable/location_no_gradient" android:state_pressed="true"/>
</selector>
The issue is that in the MenuItem, the icon is only a small part of it. Here's a screenshot of what shows up. The entire background should change, and not just the icon. How do I do that?