title: OnItemClickListener does not work for ListView and TableLayout
body: <p>I just stuck here while programming an android app. </p>
  
  <p>I created a list of items based on adapter (Extends BaseAdapter), which shows items in TableLayout due to required positioning of items. Then, I add the onItemClickListener, but nothing happens...</p>
  
  <p>ActivityNews.xml:</p>
  
  <pre><code>&lt;RelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:paddingBottom="@dimen/activity_vertical_margin"
  android:paddingLeft="@dimen/activity_horizontal_margin"
  android:paddingRight="@dimen/activity_horizontal_margin"
  android:paddingTop="@dimen/activity_vertical_margin"
  
  &gt;
  
  &lt;android.support.v7.widget.Toolbar
      android:layout_width="match_parent"
      android:layout_height="?attr/actionBarSize"
      android:id="@+id/news_toolbar"
      android:elevation="4dp"
      android:background="@color/colorPrimary"
      &gt;
  &lt;/android.support.v7.widget.Toolbar&gt;
  
  &lt;ListView
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_below="@+id/news_toolbar"
      android:id="@+id/newslist"
      android:background="@color/colorBackground"
  
  
      &gt;&lt;/ListView&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Then, this is news_list_view.xml</p>
  
  <pre><code>&lt;android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  &lt;LinearLayout
      android:layout_width="wrap_content"
      android:layout_height="match_parent"
      android:padding="6dp"
      android:background="@color/colorBackground"
      android:clickable="false"
      android:focusable="false"
      android:focusableInTouchMode="false"
      android:descendantFocusability="blocksDescendants"
      &gt;
          &lt;ImageView android:id="@+id/news_image"
              android:layout_alignParentStart="true"
              android:layout_marginEnd="6dp"
              android:layout_height="60dp"
              android:layout_width="60dp"
              android:clickable="false"
              android:focusable="false"
              android:layout_gravity="center"
              android:focusableInTouchMode="false"
              /&gt;
      &lt;TableLayout
          android:layout_height="wrap_content"
          android:layout_width="wrap_content"
          android:clickable="false"
          android:focusable="false"
  
          &gt;
          &lt;TableRow
              android:clickable="false"
              android:focusable="false"&gt;
      &lt;TextView android:id="@+id/news_date"
          android:layout_marginTop="4dp"
          android:layout_marginRight="4dp"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:textColor="@color/colorDate"
          android:layout_toRightOf="@id/news_image"
          android:clickable="false"
          android:focusable="false"
          android:focusableInTouchMode="false"
          android:textAppearance="?android:attr/textAppearanceSmall"
          android:textIsSelectable="false"
          /&gt;
  
      &lt;TextView android:id="@+id/news_type"
          android:layout_marginTop="4dp"
          android:layout_width="match_parent"
          android:layout_toRightOf="@id/news_date"
          android:layout_height="wrap_content"
          android:textColor="@color/colorSubHeadline"
          android:clickable="false"
          android:focusable="false"
          android:focusableInTouchMode="false"
          android:textAppearance="?android:attr/textAppearanceSmall"
          android:textIsSelectable="false"
          /&gt;
       &lt;/TableRow&gt;
  
       &lt;TableRow
           android:clickable="false"
           android:focusable="false"&gt;
      &lt;TextView android:id="@+id/news_headline"
          android:layout_marginTop="4dp"
          android:textAppearance="?android:attr/textAppearanceMedium"
          android:layout_width="wrap_content"
          android:layout_below="@id/news_type"
          android:layout_height="wrap_content"
          android:textColor="@color/colorHeadline"
          android:layout_span="2"
          android:clickable="false"
          android:focusable="false"
          android:focusableInTouchMode="false"
           android:textIsSelectable="false"/&gt;
       &lt;/TableRow&gt;
      &lt;/TableLayout&gt;
  &lt;/LinearLayout&gt;
  
  &lt;/android.support.v4.widget.NestedScrollView&gt;
  </code></pre>
  
  <p>and the snippet from NewsActivity</p>
  
  <pre><code> lv = (ListView) findViewById(R.id.newslist);
      adapter = new NewsAdapter(this);
      lv.setAdapter(adapter);
      lv.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
  
      lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
              Toast.makeText(NewsActivity.this, "You Clicked ", Toast.LENGTH_SHORT).show();
          }
      });
  </code></pre>
  
  <p>Any ideas? </p>
  
  <p>While researching about it, I found tips like setting clickable=false or descendantFocusability for first layout below ListView, but none worked...</p>
  
  <p>Thanks!</p>
  
  <p>Daniel</p>