How to get the current text color of a button?
<p>I want to check in a button click event if the current text color of that button is red or not?</p>

<p>I have done this so far:</p>

<pre><code>ColorStateList mList = gridcell.getTextColors();

            int col=mList.getDefaultColor();


            switch(col)
            {
            case Color.RED:
                Toast.makeText(getApplicationContext(), "RED",
                        Toast.LENGTH_SHORT).show();
            break;

            }
</code></pre>

<p>But when I click on the button which's text color is red it doest toast any thing, The defaut color is white and its getting white in all te buttons. What can I do now?</p>
