title: How to change selected tab Color or Font color for ActionbarTab?
body: <p>I am using xml to change background of selected tab using Actionbar Tab with view pager
  code is below,</p>
  
  <p><strong>style.xml</strong></p>
  
  <pre><code>&lt;!-- Custom theme. --&gt;
  &lt;style name="MyTheme" parent="android:style/Theme.Holo.Light"&gt;
      &lt;item name="android:windowActionBar"&gt;true&lt;/item&gt;
      &lt;item name="android:actionBarSize"&gt;30dp&lt;/item&gt;
      &lt;item name="android:icon"&gt;@drawable/logo&lt;/item&gt;
      &lt;item name="android:actionBarTabTextStyle"&gt;@style/Widget.Holo.TabWidget&lt;/item&gt;
       &lt;!-- &lt;item name="android:actionBarTabTextStyle"&gt;@style/customTabBar&lt;/item&gt;   --&gt;
  
  &lt;/style&gt;
  &lt;style name="Widget.Holo.TabWidget" parent="android:style/Widget.TabWidget"&gt;
      &lt;item name="android:tabStripLeft"&gt;@null&lt;/item&gt;
      &lt;item name="android:tabStripRight"&gt;@null&lt;/item&gt;
      &lt;item name="android:tabStripEnabled"&gt;true&lt;/item&gt;
      &lt;!-- &lt;item name="android:divider"&gt;@android:attr/dividerVertical&lt;/item&gt; --&gt;
      &lt;item name="android:showDividers"&gt;middle&lt;/item&gt;
      &lt;item name="android:dividerPadding"&gt;8dip&lt;/item&gt;
       &lt;item name="android:divider"&gt;@android:attr/dividerVertical&lt;/item&gt;
       &lt;item name="android:dividerHeight"&gt;10dp&lt;/item&gt;
      &lt;item name="android:measureWithLargestChild"&gt;true&lt;/item&gt;        
      &lt;item name="android:textSize"&gt;16sp&lt;/item&gt;
      &lt;item name="android:textStyle"&gt;bold&lt;/item&gt;  
      &lt;item name="android:background"&gt;@drawable/tab_bg_selector&lt;/item&gt;
  
  &lt;/style&gt;
  </code></pre>
  
  <p><strong>tab_bg_selector.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;!-- Active tab --&gt;
  
  &lt;item android:drawable="@drawable/tab_bg_selected" android:state_focused="false" android:state_pressed="false" android:state_selected="true"/&gt;
  
  &lt;!-- Inactive tab 
  
  &lt;item android:drawable="@drawable/tab_bg_unselected" android:state_focused="false" android:state_pressed="false" android:state_selected="false"/&gt;
  </code></pre>
  
  <p>-->
      </p>
  
  <pre><code>&lt;item android:drawable="@android:color/transparent" android:state_pressed="true"/&gt;
  
  &lt;!-- Selected tab (using d-pad) --&gt;
  
  &lt;item android:drawable="@android:color/transparent" android:state_focused="true" android:state_pressed="false" android:state_selected="true"/&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>tab_bg_selected.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
  android:shape="rectangle" &gt;
  
  &lt;gradient
      android:centerColor="#7F7F7F"
      android:endColor="#696969"
      android:startColor="#A8A8A8" /&gt;
  
   &lt;/shape&gt;
  </code></pre>
  
  <p>It shows me changed color but color is changes for text background only I want to change for whole Tab selected </p>
  
  <p>See below image,</p>
  
  <blockquote>
    <p><img src="https://i.stack.imgur.com/JgOKc.png" alt="enter image description here"></p>
  </blockquote>