How to change the textView text color on button click
<p>I am having a button with a text under it. How can I change the color of the text in the textview on Button click? Does it need to be added in the selector? Or within the java code? </p>

<p>Here is the selector:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
</code></pre>

<p></p>

<pre><code>&lt;item android:state_pressed="false"&gt;
    &lt;shape android:shape="oval"&gt;
        &lt;solid
            android:color="@color/blue_800"/&gt;
    &lt;/shape&gt;
&lt;/item&gt;
&lt;item android:state_pressed="true"&gt;
    &lt;shape android:shape="oval"&gt;
        &lt;solid android:color="@color/blue_300"/&gt;
    &lt;/shape&gt;
&lt;/item&gt;
</code></pre>

<p>And the layout so far:</p>

<pre><code>&lt;LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"&gt;

&lt;Button
    android:id="@+id/imageUploader1"
    android:background="@drawable/round_button"
    android:layout_width="50dp"
    android:layout_height="50dp"
    android:layout_marginRight="2dp"
    android:layout_marginLeft="2dp"/&gt;

&lt;TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Main"
    android:layout_gravity="center"/&gt;
&lt;/LinearLayout&gt;
</code></pre>