title: How to apply selector on one imageview while pressing background layout
body: <p>I have a layout which contains icon image and a textview.
  What i want is to change the background of the icon image while pressing the parent layout.
  I have try selector functionality but it only working with the view which is being pressed.If i apply selected on pressing the icon image than it works well but what i want is to change the icon image while user is pressing whole of its parent layout.
  This is my layout xml file</p>
  
  <pre><code>&lt;RelativeLayout
                  android:id="@+id/home_edit_profile"
                  android:layout_width="match_parent"
                  android:layout_height="0dp"
                  android:layout_weight="1" 
                   &gt;
  
  
  
                  &lt;RelativeLayout
                      android:id="@+id/first_row_image_container"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_centerVertical="true" 
                      android:layout_marginLeft="20dp"&gt;
  
                      &lt;ImageView
                          android:id="@+id/image_edit_profile"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:duplicateParentState="true"
                          android:src="@drawable/home_page_edit_profile_press" 
                          /&gt;
                  &lt;/RelativeLayout&gt;
  
                  &lt;RelativeLayout
  
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_centerVertical="true"
                      android:layout_toRightOf="@+id/first_row_image_container" 
                      android:layout_toLeftOf="@+id/first_row_arrow_container"
                      android:paddingLeft="15dp"&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_centerInParent="false"
                          android:text="Edit Profile"
                          android:textColor="#ffffff"
                          android:duplicateParentState="true"
                          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
                  &lt;/RelativeLayout&gt;
  
                  &lt;ImageView
                      android:id="@+id/imageView3"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:src="@drawable/home_page_saparatar_line" 
                      android:layout_alignParentBottom="true"/&gt;
  
              &lt;/RelativeLayout&gt;
  </code></pre>