title: How to set a radio group background with icon?
body: <p>This is <strong>activitiy_radio_group.xml</strong></p>
  
  <pre><code> &lt;RadioGroup
                  android:id="@+id/bottom_radio_group"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:orientation="horizontal"
                  android:layout_gravity="center"
                  android:gravity="center_vertical"
                  android:drawableRight="@drawable/radio_group_background"&gt;
  
                  &lt;RadioButton
                      android:id="@+id/radio_button_left"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:paddingRight="5dp"/&gt;
  
                  &lt;RadioButton
                      android:id="@+id/radio_button_right"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:checked="false"/&gt;
  
              &lt;/RadioGroup&gt;
  </code></pre>
  
  <p>I want set background using xml so that when we check first radio button then it should show on icon and when unchecked it should show off icon.</p>
  
  <p>I am trying using this <strong>drawable_radio_group.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item android:drawable="@drawable/selecteditem_dot" android:state_checked="true" /&gt;
      &lt;item android:drawable="@drawable/nonselecteditem_dot" android:state_checked="false" /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>But its not working icon is not changed. Please suggest me how fix it .</p>