title: How to change selected tab title color in Xamarin
body: <p>I am working on xamarin forms <code>TabbedPage</code>. I have to make only selected Tab Title to different color.</p>
  <p>This is my code</p>
  <pre><code>&lt;TabbedPage xmlns=&quot;http://xamarin.com/schemas/2014/forms&quot;
              xmlns:local=&quot;clr-namespace:go.Models&quot; 
              xmlns:x=&quot;http://schemas.microsoft.com/winfx/2009/xaml&quot;
              x:Class=&quot;Bite2.ViewsForN.SubsView&quot;&gt;
      &lt;!--Tab 1 starts here--&gt;
      &lt;ContentPage Title=&quot;Buy Subscriptions&quot;&gt;
          &lt;StackLayout&gt;
          &lt;/StackLayout&gt;
      &lt;/ContentPage&gt;
      
      &lt;!--Tab 2 starts here--&gt;
      &lt;ContentPage Title=&quot;My Subscriptions&quot;&gt;
          &lt;StackLayout&gt;
          &lt;/StackLayout&gt;
          
      &lt;/ContentPage&gt;
  &lt;/TabbedPage&gt;
  </code></pre>
  <p>In customrender, I am setting tab text color gray. I need Black for selected tab and gray for unselected tab.</p>
  <pre><code>  protected override void SetTabIconImageSource(Google.Android.Material.Tabs.TabLayout.Tab tab, Drawable icon)
      {
          base.SetTabIconImageSource(tab, icon);
          tab.SetCustomView(Resource.Layout.subscriptionsTabLayout);
          var title = tab.CustomView.FindViewById&lt;TextView&gt;(Resource.Id.tv);
          title.Text = tab.Text;
          ColorStateList csl = ColorStateList.ValueOf(Android.Graphics.Color.Gray);
          title.SetTextColor(csl);
      }
  </code></pre>
  <p>How can I do this?</p>