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.

This is my code snippet

```
<?xml version="1.0" encoding="utf-8"?>
<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" >

    <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" >

        <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" >
        </ImageView>

        <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" >
        </ImageView>

        <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" >

            <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" >
            </ImageView>

            <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" >
            </TextView>
        </RelativeLayout>
    </RelativeLayout>

</RelativeLayout> 

```

**On click of child layout**

```
text_alarm_time_layout.setOnClickListener(new OnClickListener()
            {
                @Override
                public void onClick(View v)
                {
                    // Do something
                }
            });

```

**On touch of parent layout which is not responding if above call is there**

```
         image_view_layout.setOnTouchListener(new OnTouchListener() {

                @Override
                public boolean onTouch(View v, MotionEvent event) {
                    // TODO Auto-generated method stub
                    return true;
                }
            });

```