title: Change Action Bar onPressed color
body: <p>I cannot figure out how to change the action bar items "onPressed" color on Android. I'm not talking about the action bar background color but about the blue over state. How can I change the color of this or at least get rid of it? For instance the App Icon with the homeAsUpIndicator.</p>
  
  <p>I tried to change the action bar style and also the menu item style but nothing worked.</p>
  
  <p>Thanks</p>
  
  <p><em>EDIT</em>
  Here is my implementation so far:</p>
  
  <p>My style xml:</p>
  
  <pre><code>&lt;style name="Theme.AppTheme" parent="@android:style/Theme.Holo"&gt;
      &lt;item name="android:actionBarStyle"&gt;@style/MyActionBar&lt;/item&gt;
      &lt;item name="android:selectableItemBackground"&gt;@android:color/transparent&lt;/item&gt;
      &lt;item name="android:windowEnterAnimation"&gt;@anim/fadein&lt;/item&gt;
      &lt;item name="android:windowExitAnimation"&gt;@anim/fadeout&lt;/item&gt;        
      &lt;item name="android:actionBarItemBackground"&gt;@android:color/transparent&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar"&gt;
      &lt;item name="android:background"&gt;@drawable/actionbarheader&lt;/item&gt;
      &lt;item name="android:backgroundStacked"&gt;@drawable/actionbarheader&lt;/item&gt;
      &lt;item name="android:backgroundSplit"&gt;@drawable/actionbarheader&lt;/item&gt;
      &lt;item name="android:titleTextStyle"&gt;@style/ActionBarTitle&lt;/item&gt;
      &lt;item name="android:actionBarItemBackground"&gt;@android:color/transparent&lt;/item&gt;
      &lt;item name="android:actionButtonStyle"&gt;@style/MyActionButtonStyle&lt;/item&gt;
      &lt;item name="android:homeAsUpIndicator"&gt;@drawable/actionbarlogo&lt;/item&gt;
      &lt;item name="android:icon"&gt;@drawable/app_icon&lt;/item&gt;&gt;
  &lt;/style&gt;
  
  &lt;style name="ActionBarTitle" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title"&gt;
      &lt;item name="android:textSize"&gt;20sp&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="MyActionButtonStyle" parent="@android:style/Widget.Holo.Light.ActionButton"&gt;
      &lt;item name="android:background"&gt;@android:color/transparent&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>Then I have a drawable for the actionbarogo:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;item android:drawable="@drawable/actionbarlogo_on" android:state_pressed="true"/&gt;
    &lt;item android:drawable="@drawable/actionbarlogo_on" android:state_focused="true"/&gt;
    &lt;item android:drawable="@drawable/actionbarlogo_off"/&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>My menu xml for the action bar items:</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item android:id="@+id/ContactsMode"
          android:icon="@drawable/actionbarcontacts"
          android:title="@string/contacts"
          android:orderInCategory="100"
          android:showAsAction="always"
          android:background="@android:color/transparent" /&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>and finally, the item's drawable:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;item android:drawable="@drawable/actionbarcontacts_on" android:state_pressed="true"/&gt;
    &lt;item android:drawable="@drawable/actionbarcontacts_on" android:state_focused="true"/&gt;
    &lt;item android:drawable="@drawable/actionbarcontacts_off"/&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>Here is how I create the Menu Items for the ActionBar:</p>
  
  <pre><code>public boolean onCreateOptionsMenu(Menu menu) {
          MenuInflater inflater = getMenuInflater();
          inflater.inflate(R.menu.main_menu, menu);
          actionBar.setIcon(R.drawable.actionbarlogo);
          return true;
      }
  
      public boolean onPrepareOptionsMenu(Menu menu) {        
           MenuItem item= menu.findItem(R.id.ContactsMode);
           if(ContactsButton)
               item.setVisible(true);      
           else
              item.setVisible(false);
  
           return true;   
      }
  </code></pre>