title: Change switch button text color
body: <p>I have successfully able to create a switch button in my application using the following custom class available in Github <a href="https://github.com/pellucide/Android-Switch-Demo-pre-4.0/blob/master/android-switch-demo/src/com/appscumen/example/MySwitch.java" rel="nofollow noreferrer">Switch Button Demo class</a></p>
  
  <p>Here is the snapshot what i am getting <img src="https://i.stack.imgur.com/HQAN6.png" alt="Swith button"></p>
  
  <p>All is working good except one thing , I want to make text color to Black for unchecked state. I mean <strong>"OFF"</strong> text color is black when it is not selected. I tried to put some condition on my custom class but it not giving me the proper result.
  My style.xml file is like this</p>
  
  <pre><code>     &lt;style name="mySwitchStyle"&gt;
            &lt;item name="track"&gt;@drawable/switch_track_green&lt;/item&gt;
            &lt;item name="thumb"&gt;@drawable/background_fenced&lt;/item&gt;
            &lt;item name="switchTextAppearanceAttrib"&gt;@style/mySwitchTextAppearance&lt;/item&gt;
            &lt;item name="textOn"&gt;ON&lt;/item&gt;
            &lt;item name="textOff"&gt;OFF&lt;/item&gt;
            &lt;item name="pushStyle"&gt;false&lt;/item&gt;
            &lt;item name="textOnThumb"&gt;true&lt;/item&gt;
            &lt;item name="thumbExtraMovement"&gt;0dp&lt;/item&gt;
            &lt;item name="thumbTextPadding"&gt;6dp&lt;/item&gt;
            &lt;item name="trackTextPadding"&gt;6dp&lt;/item&gt;
           &lt;item name="switchMinWidth"&gt;69dp&lt;/item&gt;
           &lt;item name="switchMinHeight"&gt;36dp&lt;/item&gt;
           &lt;item name="switchPadding"&gt;6dp&lt;/item&gt;
        &lt;/style&gt;
  
        &lt;style name="mySwitchTextAppearance"&gt;
            &lt;item name="textColor"&gt;#FFeeFFee&lt;/item&gt;
            &lt;item name="textColorHighlight"&gt;#FFeeFFee&lt;/item&gt;
            &lt;item name="textColorHint"&gt;#FFeeFFee&lt;/item&gt;
           &lt;item name="textColorLink"&gt;#FFeeFFee&lt;/item&gt;
           &lt;item name="textSize"&gt;16sp&lt;/item&gt;
           &lt;item name="textStyle"&gt;normal&lt;/item&gt;
        &lt;/style&gt;
  </code></pre>
  
  <p>I tried to change the textColorHighlight, textColorHint, textColorLink to Black color but not giving me the desired result. Please help me to   acheive the desired result.</p>