title: How to add a ontouchlistener or clicklistener on LinearLayout?
body: <p>I added a ontouchlistener on linearlayout which include a TextView and a ImageView.When I touched the TextView part it works,and the ImageView doesn't work.I want all the linearlayout can get the touch event.What should I do? My XML is as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="50dip"
      android:background="@drawable/graytitle_bj1_black"
      android:gravity="center|bottom"
      android:orientation="horizontal"&gt;
  
      &lt;LinearLayout
          android:id="@+id/nav_boutique"
          android:layout_width="120dip"
          android:layout_height="wrap_content"
          android:orientation="vertical"
          android:layout_marginBottom="2dip"
          android:clickable="true"
          android:focusableInTouchMode="true"
          android:descendantFocusability="blocksDescendants"&gt;
  
          &lt;ImageView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:contentDescription="@string/description"
              android:src="@drawable/btn_jingpin_icon"
              android:background="#FFF"
              android:focusable="false"
              android:clickable="true"/&gt;
          &lt;TextView 
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:gravity="center"
              android:textColor="#ffffff"
              android:text="@string/bottom_jingpin"/&gt;
          &lt;View 
              android:id="@+id/nav_boutique_line"
              android:layout_width="fill_parent"
              android:layout_height="2dip"
              android:background="#F00"/&gt;
      &lt;/LinearLayout&gt;
      &lt;View 
          android:layout_width="1dip"
          android:layout_height="fill_parent"/&gt;
      &lt;LinearLayout
          android:id="@+id/nav_fenlei"
          android:layout_width="120dip"
          android:layout_height="wrap_content"
          android:orientation="vertical"
          android:layout_marginBottom="2dip"
          android:clickable="true"
          android:descendantFocusability="blocksDescendants"
          android:focusableInTouchMode="true"&gt;
  
          &lt;ImageView            
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:contentDescription="@string/description"
              android:src="@drawable/icon_fenlei"
              android:background="#00000000"
              android:focusable="false"
              android:clickable="true"/&gt;
          &lt;TextView 
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:gravity="center"
              android:textColor="#ffffff"
              android:text="@string/bottom_fenlei"/&gt;
          &lt;View 
              android:id="@+id/nav_fenlei_line"
              android:layout_width="fill_parent"
              android:layout_height="2dip"/&gt;
      &lt;/LinearLayout&gt;
  
      &lt;View 
          android:layout_width="1dip"
          android:layout_height="fill_parent"/&gt;
      &lt;LinearLayout
          android:id="@+id/nav_dingyue"
          android:layout_width="120dip"
          android:layout_height="wrap_content"
          android:orientation="vertical"
          android:layout_marginBottom="2dip"
          android:clickable="true"
          android:descendantFocusability="blocksDescendants"
          android:focusableInTouchMode="true"&gt;
  
          &lt;ImageView            
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:contentDescription="@string/description"
              android:src="@drawable/btn_zizhudingyue_icon"
              android:background="#00000000"
              android:clickable="true"
              android:focusable="false"/&gt;
          &lt;TextView 
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:gravity="center"
              android:textColor="#ffffff"
              android:text="@string/bottom_dingyue"/&gt;
          &lt;View 
              android:id="@+id/nav_dingyue_line"
              android:layout_width="fill_parent"
              android:layout_height="2dip"/&gt;
      &lt;/LinearLayout&gt;
  
      &lt;View 
          android:layout_width="1dip"
          android:layout_height="fill_parent"/&gt;
      &lt;LinearLayout
          android:id="@+id/nav_sousuo"
          android:layout_width="120dip"
          android:layout_height="wrap_content"
          android:orientation="vertical"
          android:layout_marginBottom="2dip"
          android:clickable="true"
          android:descendantFocusability="blocksDescendants"
          android:focusableInTouchMode="true"&gt;
  
          &lt;ImageView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:contentDescription="@string/description"
              android:src="@drawable/icon_sousuo"
              android:background="#00000000"
              android:focusable="false"
              android:clickable="true"/&gt;
          &lt;TextView 
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:gravity="center"
              android:textColor="#ffffff"
              android:text="@string/bottom_sousuo"/&gt;
          &lt;View 
              android:id="@+id/nav_sousuo_line"
              android:layout_width="fill_parent"
              android:layout_height="2dip"/&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>And this is my code:</p>
  
  <pre><code>dingyueLL.setOnTouchListener(new OnTouchListener()
      {
  
          @Override
          public boolean onTouch(View v, MotionEvent event)
          {
              setFlagTrue(Navigation.Dingyue.getPosition());
              setBtnLine();
              return false;
          }
  
      });
  </code></pre>