Android change text color on click
<p>I changed my <code>ActionDown</code> and <code>ActionUp</code> colors to match my original color and the <code>text/button</code> now goes <code>transparent</code>.</p>

<p>My style script:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;resources&gt;
&lt;style name="MenuFont"&gt;
    &lt;item name="android:textSize"&gt;20sp&lt;/item&gt;
    &lt;item name="android:textColor"&gt;#CDCDCD&lt;/item&gt;
    &lt;item name="android:textStyle"&gt;normal&lt;/item&gt;
    &lt;item name="android:clickable"&gt;true&lt;/item&gt;
    &lt;item name="android:layout_weight"&gt;1&lt;/item&gt;
    &lt;item name="android:gravity"&gt;left|center&lt;/item&gt;
    &lt;item name="android:paddingLeft"&gt;35dp&lt;/item&gt;
    &lt;item name="android:layout_width"&gt;175dp&lt;/item&gt; 
    &lt;item name="android:layout_height"&gt;fill_parent&lt;/item&gt;
&lt;/style&gt;
</code></pre>

<p></p>

<p><strong>Original working script:</strong></p>

<pre><code>package com.pxr.tutorial.menu;

import android.view.MotionEvent;
import android.view.View;
import android.widget.TextView;

public class CustomTouchListener implements View.OnTouchListener {     
public boolean onTouch(View view, MotionEvent motionEvent) {

    switch(motionEvent.getAction()){            
        case MotionEvent.ACTION_DOWN:
         ((TextView) view).setTextColor(0xFF6A5ACD); 
            break;          
        case MotionEvent.ACTION_CANCEL:             
        case MotionEvent.ACTION_UP:
        ((TextView) view).setTextColor(0xFFFFFF00);
            break;
    } 

    return false;   
} 
}
</code></pre>

<p><strong>New Script:</strong></p>

<pre><code>package com.synamegames.orbs;

import android.view.MotionEvent;
import android.view.View;
import android.widget.TextView;

public class CustomTouchListener implements View.OnTouchListener {     
public boolean onTouch(View view, MotionEvent motionEvent) {

    switch(motionEvent.getAction()){            
        case MotionEvent.ACTION_DOWN:
         ((TextView) view).setTextColor(0x4F4F4F); 
            break;          
        case MotionEvent.ACTION_CANCEL:             
        case MotionEvent.ACTION_UP:
        ((TextView) view).setTextColor(0xCDCDCD);
            break;
    } 

    return false;   
} 
}
</code></pre>

<p>What i did was change the hex codes to match the original text color. Once i did that the text became transparent when clicked. What did i do wrong?</p>
