title: Custom selected tab text color in SlidingTabLayout
body: <p>I'm using the SlidingTabLayout from google (<a href="https://developer.android.com/samples/SlidingTabsBasic/src/com.example.android.common/view/SlidingTabLayout.html" rel="nofollow noreferrer">https://developer.android.com/samples/SlidingTabsBasic/src/com.example.android.common/view/SlidingTabLayout.html</a>).</p>
  
  <p>It works well, but what I want it is to put the selected title in bold and with a different color...</p>
  
  <p>Regarding this post :
  <a href="https://stackoverflow.com/questions/25568392/custom-unselected-tab-text-color-in-slidingtablayout">Custom unselected tab text color in SlidingTabLayout</a></p>
  
  <p>I make a text_tab.xml in drawable with the selector:</p>
  
  <pre><code> &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
   &lt;item android:color="@android:color/selected" android:state_selected="true" /&gt;
   &lt;item android:color="@android:color/unselected" /&gt;
   &lt;/selector&gt;
  </code></pre>
  
  <p>When in the populateTabStrip() method I put</p>
  
  <pre><code> tabTitleView.setTextColor(getResources().getColorStateList(R.drawable.text_tab));
  </code></pre>
  
  <p>The color is always the one of unselected... </p>
  
  <p>I'm probably doing something wrong, or maybe there is another way to customise the selected tab title.</p>
  
  <p>Someone has an idea?</p>
  
  <p>Thanks</p>