Intercepet touch event in some portion of HorizontalScrollView
<p>I have this layout.xml:</p>

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

    &lt;LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="horizontal" &gt;

        &lt;LinearLayout
            android:layout_width="200dip"
            android:layout_height="fill_parent"
            android:background="#c6c6c6"
            android:orientation="vertical" &gt;
        &lt;/LinearLayout&gt;

        &lt;LinearLayout
            android:layout_width="800dip"
            android:layout_height="fill_parent"
            android:orientation="vertical" &gt;

            &lt;LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="40dip"
                android:background="#ff0000"
                android:orientation="vertical" &gt;
            &lt;/LinearLayout&gt;

            &lt;LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:background="#ffaa00"
                android:orientation="vertical" &gt;
            &lt;/LinearLayout&gt;
        &lt;/LinearLayout&gt;
    &lt;/LinearLayout&gt;

&lt;/HorizontalScrollView&gt;
</code></pre>

<p>that outputs this:</p>

<p><img src="http://i.stack.imgur.com/o2oPt.png" alt="enter image description here"></p>

<p>How is possibile to have touch only in the red region? I tried to set an OnTouchListener in a custom HorizontalScrollView and played with the </p>

<blockquote>
  <p>onTouch(View v, MotionEvent v)</p>
</blockquote>

<p>but the view is always an instance of HorizontalScrollView.</p>
