title: How to get current Button text color in Android?
body: <p>I cant figure out how to get the current color of the text of a Button. I know its probably this but cant quite figure out the parameters.</p>
  
  <pre><code>public static int getTextColor (Context context, TypedArray attrs, int def)...
  </code></pre>
  
  <p>Basically Im trying to do this</p>
  
  <pre><code>if(text is RED)
  {make text BLACK}
  else
  {make text RED}
  </code></pre>
  
  <p>I know how to set the text color.</p>