title: How to seperate the finger touch feature in one layout and one activity?
body: <p>If my main layout consists of two linear layout like following:</p>
  
  <p><strong>res/layout/main.xml</strong>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
  
    &lt;LinearLayout
        android:orientation="horizontal"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="1"&gt;
        &lt;TextView
            android:text="red"
            android:gravity="center_horizontal"
            android:background="#aa0000"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:layout_weight="1"/&gt;
  
        &lt;TextView
            android:text="blue"
            android:gravity="center_horizontal"
            android:background="#0000aa"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:layout_weight="1"/&gt;
        &lt;TextView
            android:text="yellow"
            android:gravity="center_horizontal"
            android:background="#aaaa00"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:layout_weight="1"/&gt;
    &lt;/LinearLayout&gt;
  
    &lt;LinearLayout
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_weight="1"&gt;
      &lt;TextView
          android:text="row one"
          android:textSize="15pt"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_weight="1"/&gt;
      &lt;TextView
          android:text="row two"
          android:textSize="15pt"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_weight="1"/&gt;
      &lt;TextView
          android:text="row three"
          android:textSize="15pt"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_weight="1"/&gt;
    &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>My activity class looks like:</p>
  
  <pre><code>public class MainActivity extends Activity{
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
      }
  }
  </code></pre>
  
  <p>I would like to implement a feature that the upper linear layout(which contain colors) can move content with finger touch, that's I have to implement <code>OnTouchListener</code> , but for the lower linear layout(which contains several TextView) I do not want to have finger touch feature. </p>
  
  <p>Since they are in one xml layout file, and I have one Java class (MainActivity.java), how can I separate them with half of the layout has finger touch feature, but implement <code>onTouchListener</code> in the whole main activity class? </p>