title: On touch of parent layout not responding
body: <p>In my code i am implementing swipe on parent layout on touch of parent layout, There is also an on click listener on my child layout. Now because of this on click listener on the child layout, whenever i swipe on the parent layout it doesn't respond to the touch, but once i removed the on click listener of the child it started responding to the touch on parent layout. Anything do with my xml file.</p>
  
  <p>This is my code snippet</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/list_item_main_layout"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="#00000000"
      android:gravity="center_horizontal" &gt;
  
      &lt;RelativeLayout
          android:id="@+id/image_view_layout"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:background="@android:color/transparent"
          android:gravity="center_horizontal" &gt;
  
          &lt;ImageView
              android:id="@+id/image_view"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginLeft="35dp"
              android:contentDescription="@string/image_description_text"
              android:scaleType="fitXY" &gt;
          &lt;/ImageView&gt;
  
          &lt;ImageView
              android:id="@+id/but_drag"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignBottom="@+id/image_view"
              android:layout_alignParentLeft="true"
              android:layout_marginBottom="5dp"
              android:layout_marginLeft="10dp"
              android:contentDescription="@string/image_description_text" &gt;
          &lt;/ImageView&gt;
  
          &lt;RelativeLayout
              android:id="@+id/text_alarm_time_layout"
              android:layout_width="80dp"
              android:layout_height="fill_parent"
              android:layout_alignBottom="@+id/image_view"
              android:layout_alignParentRight="true"
              android:background="#dee2e8" &gt;
  
              &lt;ImageView
                  android:id="@+id/image_alarm_clock"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignParentTop="true"
                  android:layout_centerHorizontal="true"
                  android:layout_marginTop="@dimen/clock_top_margin"
                  android:background="@drawable/image_alarmclock_compact_mode"
                  android:contentDescription="@string/image_description_text"
                  android:scaleType="fitXY" &gt;
              &lt;/ImageView&gt;
  
              &lt;TextView
                  android:id="@+id/text_date"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_below="@+id/image_alarm_clock"
                  android:layout_centerHorizontal="true"
                  android:layout_marginTop="5dp"
                  android:contentDescription="@string/image_description_text"
                  android:textSize="12sp"
                  android:visibility="gone" &gt;
              &lt;/TextView&gt;
          &lt;/RelativeLayout&gt;
      &lt;/RelativeLayout&gt;
  
  &lt;/RelativeLayout&gt; 
  </code></pre>
  
  <p><strong>On click of child layout</strong></p>
  
  <pre><code>text_alarm_time_layout.setOnClickListener(new OnClickListener()
              {
                  @Override
                  public void onClick(View v)
                  {
                      // Do something
                  }
              });
  </code></pre>
  
  <p><strong>On touch of parent layout which is not responding if above call is there</strong></p>
  
  <pre><code>         image_view_layout.setOnTouchListener(new OnTouchListener() {
  
                  @Override
                  public boolean onTouch(View v, MotionEvent event) {
                      // TODO Auto-generated method stub
                      return true;
                  }
              });
  </code></pre>