OnTouchListener doesn't work with relative layout
<p>I have a <code>RelativeLayout</code> in which I am adding many <code>TextViews</code> dynamically. The problem I am facing is, whenever I apply an onTouch listener to <code>TextViews</code> individually, it detects touches but when i add touch to my relative layout, it never responds.</p>

<p>This code detects touch events just fine:</p>

<pre><code>TextView tv = new TextView(this);
tv.setText(values[i]);
Drawable d = getResources().getDrawable(R.drawable.level_small_corners);

tv.setClickable(true);
tv.setId(i+1);
tv.setTextSize(18);
tv.setOnTouchListener(cellTouch);
</code></pre>

<p>But when I add all these TextViews in myRelativeLayout:</p>

<pre><code>myRelativeLayout.setOnTouchListener(cellTouch);
</code></pre>

<p>Now, the onTouchListener never gets called. Why is that so?</p>

<pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:background="@android:color/black"
    &gt;
    .
    .
    .

    &lt;ScrollView 
             android:layout_width="fill_parent" 
             android:layout_height="wrap_content"
             android:layout_below="@+id/levelFirstLayout"
             android:layout_marginBottom="70dp"
             &gt; 

        &lt;RelativeLayout  

             android:id="@+id/wordsRelativeLayout"
             android:layout_width="fill_parent" 
             android:clickable="true"   
             android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"

            &gt;
        &lt;/RelativeLayout&gt;

        &lt;/ScrollView&gt; 
    .
    .
    .
        &lt;/RelativeLayout&gt;
</code></pre>
