title: Android Action Bar : Custom tabs and overflow
body: <p>I'm having a hard time implementing custom-styled tabs for action bar: I need to make tabs (I mean buttons) use custom graphics for both normal and selected states.</p>
  
  <p>I've been able to kill all the native styling using</p>
  
  <pre><code>&lt;style name="customActionBarTabStyle"&gt;
      &lt;item name="android:background"&gt;#00000000&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>and then use Tab.setIcon() to make the tabs look the way I need, but I need them to react to switching (by switching between two Drawables - for on and off state).</p>
  
  <p>I've tried creating a Drawable selector like this:</p>
  
  <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item android:state_pressed="true"
            android:drawable="@drawable/btn_on" /&gt;
      &lt;item android:drawable="@drawable/btn_off" /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>but the tabs don't switch to pressed mode when selected.</p>
  
  <p>Also, I've tried calling Tab.setIcon() in TabListener.onTabSelected() and .onTabUnselected() - no luck either.</p>
  
  <p>Does anyone know a good solution to this one?</p>
  
  <p>Also, I need to display a custom view instead of overflow menu - I've already googled up a bunch of "hints" to rethink my UI to "follow the Android way" but the problem is the UI is not actualy mine to rethink - it's customer's :) so I'd really like to find a way to workaround ActionBar's customization shortcomings.</p>
  
  <p>Any suggestions are much appreciated, thanks in advance.</p>