title: ListView onItemClickListener does not work, why?
body: <p>I have got the following layout:</p>
  
  <pre><code>&lt;RelativeLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="com.iav.viraprecorder.ServerListFragment"
      android:paddingTop="@dimen/recording_details_padding_top_bottom"
      android:paddingBottom="@dimen/recording_details_padding_top_bottom"
      android:paddingLeft="@dimen/recording_details_padding_left_right"
      android:paddingRight="@dimen/recording_details_padding_left_right"&gt;
  
      &lt;Button
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="@string/next"
          android:id="@+id/server_list_next_button"
          android:layout_alignParentBottom="true"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true"
          android:enabled="false"/&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textAppearance="?android:attr/textAppearanceLarge"
          android:text="@string/list_available_servers"
          android:id="@+id/server_list_heading"/&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/server_list_hint"
          android:id="@+id/server_list_hint"
          android:layout_below="@+id/server_list_heading"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true"/&gt;
  
      &lt;ListView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:id="@+id/server_list_view"
          android:layout_below="@+id/server_list_hint"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true"
          android:layout_above="@id/server_list_next_button"
          android:choiceMode="singleChoice"
          android:background="?android:attr/activatedBackgroundIndicator"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>The items of the ListView have got the following style:</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="match_parent"
                android:layout_height="match_parent"&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textAppearance="?android:attr/textAppearanceSmall"
          android:text="Type: Anything"
          android:id="@+id/type"/&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textAppearance="?android:attr/textAppearanceSmall"
          android:text="Description: ..."
          android:id="@+id/description"/&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textAppearance="?android:attr/textAppearanceSmall"
          android:text="API-Level: 2"
          android:id="@+id/api_level"/&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textAppearance="?android:attr/textAppearanceSmall"
          android:text="Generated on: 10.08.2013"
          android:id="@+id/generated_date"
          android:phoneNumber="true"/&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textAppearance="?android:attr/textAppearanceSmall"
          android:text="Address: 192.168.111.112:32001"
          android:id="@+id/address"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>In my ServerListFragment.java I attach an OnItemClickListener to my ListView inside the inViewCreated method. I first get the ListView, set the listener and then add the adapter. </p>
  
  <p>Currently clicks on my list are not received.</p>
  
  <p>Can someone tell me why?</p>
  
  <p>Thanks a lot.</p>