How to change selected Tab Text color using TabLayout from code in Android?
<blockquote>
  <p><img src="https://i.stack.imgur.com/CPweU.png" alt="enter image description here"></p>
</blockquote>

<p>I'm using <code>android.support.widget.TabLayout</code> to make a Tab view, and I want to change the selected tabs text color from code (not from xml or by styling). How can I do this ?</p>