title: How to change Tab Indicator color programmatically
body: <p>I am <strong><em>new to Android</em></strong>, and before starting programming i found that now a days many of the apps are using Fragments, especially <strong><em>Tab with Swipeable Views</em></strong></p>
  
  <p>How to change <strong><em>Tab Indicator/highlight color</em></strong> (I googled and changed ActionBar color to RED programmatically), but don't know how to change Tab Indicator color to RED. 
  (priority programmatically)</p>
  
  <p>still my ActionBar looks like <a href="http://postimg.org/image/wz9kmfp0d/" rel="nofollow">this</a></p>
  
  <p>I am using below lines to change <strong><em>background color of ActionBar</em></strong>, but i also need to change the color of Tab Indicator programmatically.</p>
  
  <pre><code>actionBar = getActionBar();
  actionBar.setBackgroundDrawable(new ColorDrawable(Color.RED));
  </code></pre>