title: Changing Text color of RadioButton if clicked in android
body: <p>I want to change text color of Radio Button if clicked by user. However I can change background color but I don't want that..and can anyone even tell how to put cross or right sign as per right or wrong choice selected...?
  Here's my code for main class..</p>
  
  <pre><code>final RadioButton Red = (RadioButton)findViewById(R.id.radioButton1);
      //RadioButton Blue = (RadioButton)findViewById(R.id.radioButton2);
      RadioButton Green = (RadioButton)findViewById(R.id.radioButton3);
  
  
      Red.setOnCheckedChangeListener(new OnCheckedChangeListener() {
  
          @Override
          public void onCheckedChanged(CompoundButton buttonView, boolean      isChecked) {
          if(isChecked) {
              Red.setBackgroundColor(Color.RED);
          }
  
          }
      });
      Green.setOnCheckedChangeListener(new OnCheckedChangeListener() {
  
          @Override
          public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
              // TODO Auto-generated method stub
  
          }
      });
  </code></pre>
  
  <p>here's is my layout file:</p>
  
  <pre><code>&lt;RadioGroup
      android:id="@+id/radiogroup1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" &gt;
  
      &lt;RadioButton
          android:id="@+id/radioButton1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="RadioButton" 
          /&gt;
  
      &lt;RadioButton
          android:id="@+id/radioButton2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="RadioButton" /&gt;
  
      &lt;RadioButton
          android:id="@+id/radioButton3"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="RadioButton" /&gt;
  &lt;/RadioGroup&gt;
  </code></pre>