title: Is it possible to change actionbar tab indicator programmatically
body: <p>How can i change programmatically the selected tab indicator of my action bar ? i have read about <a href="http://developer.android.com/guide/topics/ui/actionbar.html#Style" rel="noreferrer">tab styling</a>, and Tab.setCustomView() method, but none of these helps : </p>
  
  <ul>
  <li><p>With tab styles, i can change the indicator color, but it will remain for all tabs (i want to have an indicator for each tab).</p></li>
  <li><p>With tab custom view, i have used a layout with a <code>TextView</code> for tab title, and <code>View</code> for managing the indicator color. In the java i change the <code>View</code>'s background dynamically, but the problem with that is the <code>View</code>'s background doesn't match tabs bounds.</p></li>
  </ul>
  
  <p></p>
  
  <pre><code>&lt;TextView
      android:id="@+id/custom_tab_text"
      android:layout_width="match_parent"
      android:layout_height="match_parent" 
      android:layout_centerInParent="true"
      android:layout_centerHorizontal="true"
      android:gravity="center|center_horizontal"
      android:textStyle="bold"/&gt;
  
  &lt;View 
      android:id="@+id/custom_tab_view"
      android:layout_width="match_parent"
      android:layout_height="10dp" 
      android:layout_alignParentBottom="true"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>Can somebody tell me where i'am wrong ? Is there another way to do it ? Thanks</p>