title: Android RelativeLayout Drawable Selector doesn't work
body: <p>I have troubles making my RelativeLayout change background drawable on click. I made it clickable and focusable but this make nothing change. The background remains static to enables drawable. Thanks in advance.</p>
  
  <pre><code>&lt;RelativeLayout
              android:id="@+id/bttn_type_rl"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="left"
              android:background="@drawable/day_bttn_bg_red"
              android:clickable="true"
              android:focusable="true"
              android:paddingLeft="5dp"
              android:paddingRight="5dp" &gt;
  
              &lt;ImageView
                  android:id="@+id/bttn_type_iv"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_centerHorizontal="true"
                  android:layout_marginTop="5dp"
                  android:contentDescription="@string/app_name"
                  android:src="@drawable/relationship" /&gt;
  
              &lt;TextView
                  android:id="@+id/bttn_type_tv"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_below="@+id/bttn_type_iv"
                  android:layout_centerHorizontal="true"
                  android:layout_marginTop="1dp"
                  android:text="@string/type_bttn_txt"
                  android:textSize="@dimen/data_fill_bttn_txt_size"
                  android:textStyle="bold" /&gt;
          &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Here is the selector xml in drawable:</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/bttn_red_p_bg" android:state_enabled="false" android:state_pressed="true"&gt;&lt;/item&gt;
      &lt;item android:drawable="@drawable/bttn_red_a_bg" android:state_enabled="true"&gt;&lt;/item&gt;
  
  &lt;/selector&gt;
  </code></pre>