title: How to change Tab Style and Color using AppCompat Library
body: <p>I am making a small program in which i am using <strong>Fragment Tabs with swipe</strong>, to make it stylish i used <strong>Style Generator</strong>, and my experience was good with that.</p>
  
  <p>Now i wanna do a small change in existing look of my Tabs, this time i am talking about <strong>Tab Text style</strong>.</p>
  
  <p>first view screen shot of my <strong>simple stylish ActionBar</strong></p>
  
  <p><img src="https://i.stack.imgur.com/Z31V5.jpg" alt="enter image description here"></p>
  
  <p>Like we can see all <strong>Tab's text</strong> are <strong>looking equivalent</strong>, so here i need your help, in my case text style for <strong>selected</strong> Tab will remain same <strong>white as bold</strong> as it is looking, but want to <strong>change</strong> text <strong>style for others</strong> as <strong>normal</strong> (i mean those are not selected like:- IOS and WINDOWS) </p>
  
  <p><strong>styles.xml:</strong></p>
  
  <pre><code>&lt;resources&gt;
  
      &lt;style name="Theme.Compatstyle4" parent="@style/Theme.AppCompat.Light.DarkActionBar"&gt;
          &lt;item name="actionBarItemBackground"&gt;@drawable/selectable_background_compatstyle4&lt;/item&gt;
          &lt;item name="popupMenuStyle"&gt;@style/PopupMenu.Compatstyle4&lt;/item&gt;
          &lt;item name="dropDownListViewStyle"&gt;@style/DropDownListView.Compatstyle4&lt;/item&gt;
          &lt;item name="actionBarTabStyle"&gt;@style/ActionBarTabStyle.Compatstyle4&lt;/item&gt;
          &lt;item name="actionDropDownStyle"&gt;@style/DropDownNav.Compatstyle4&lt;/item&gt;
          &lt;item name="actionBarStyle"&gt;@style/ActionBar.Solid.Compatstyle4&lt;/item&gt;
          &lt;item name="actionModeBackground"&gt;@drawable/cab_background_top_compatstyle4&lt;/item&gt;
          &lt;item name="actionModeSplitBackground"&gt;@drawable/cab_background_bottom_compatstyle4&lt;/item&gt;
          &lt;item name="actionModeCloseButtonStyle"&gt;@style/ActionButton.CloseMode.Compatstyle4&lt;/item&gt;
  
                  &lt;!-- Light.DarkActionBar specific --&gt;
          &lt;item name="actionBarWidgetTheme"&gt;@style/Theme.Compatstyle4.Widget&lt;/item&gt;
  
      &lt;/style&gt;
  
      &lt;style name="ActionBar.Solid.Compatstyle4" parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse"&gt;
          &lt;item name="background"&gt;@drawable/ab_solid_compatstyle4&lt;/item&gt;
          &lt;item name="backgroundStacked"&gt;@drawable/ab_stacked_solid_compatstyle4&lt;/item&gt;
          &lt;item name="backgroundSplit"&gt;@drawable/ab_bottom_solid_compatstyle4&lt;/item&gt;
          &lt;item name="progressBarStyle"&gt;@style/ProgressBar.Compatstyle4&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="ActionBar.Transparent.Compatstyle4" parent="@style/Widget.AppCompat.ActionBar"&gt;
          &lt;item name="background"&gt;@drawable/ab_transparent_compatstyle4&lt;/item&gt;
          &lt;item name="progressBarStyle"&gt;@style/ProgressBar.Compatstyle4&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="PopupMenu.Compatstyle4" parent="@style/Widget.AppCompat.PopupMenu"&gt;    
          &lt;item name="android:popupBackground"&gt;@drawable/menu_dropdown_panel_compatstyle4&lt;/item&gt;  
      &lt;/style&gt;
  
      &lt;style name="DropDownListView.Compatstyle4" parent="@style/Widget.AppCompat.ListView.DropDown"&gt;
          &lt;item name="android:listSelector"&gt;@drawable/selectable_background_compatstyle4&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="ActionBarTabStyle.Compatstyle4" parent="@style/Widget.AppCompat.ActionBar.TabView"&gt;
          &lt;item name="android:background"&gt;@drawable/tab_indicator_ab_compatstyle4&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="DropDownNav.Compatstyle4" parent="@style/Widget.AppCompat.Spinner.DropDown.ActionBar"&gt;
          &lt;item name="android:background"&gt;@drawable/spinner_background_ab_compatstyle4&lt;/item&gt;
          &lt;item name="android:popupBackground"&gt;@drawable/menu_dropdown_panel_compatstyle4&lt;/item&gt;
          &lt;item name="android:dropDownSelector"&gt;@drawable/selectable_background_compatstyle4&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="ProgressBar.Compatstyle4" parent="@style/Widget.AppCompat.ProgressBar.Horizontal"&gt;
          &lt;item name="android:progressDrawable"&gt;@drawable/progress_horizontal_compatstyle4&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="ActionButton.CloseMode.Compatstyle4" parent="@style/Widget.AppCompat.ActionButton.CloseMode"&gt;
          &lt;item name="android:background"&gt;@drawable/btn_cab_done_compatstyle4&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;!-- this style is only referenced in a Light.DarkActionBar based theme --&gt;
      &lt;style name="Theme.Compatstyle4.Widget" parent="@style/Theme.AppCompat"&gt;
          &lt;item name="popupMenuStyle"&gt;@style/PopupMenu.Compatstyle4&lt;/item&gt;
          &lt;item name="dropDownListViewStyle"&gt;@style/DropDownListView.Compatstyle4&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <p><strong>Like:</strong>  I want to show text color as default for selected tab and gray for others</p>