I have a ListFragment which is a Tab (one of many) in my ActionBar. The problem is that none of the list elements is clickable (onListItemClick() is never called). The element consist of two TextViews. I have tried many different things including:
android:drawSelectorOnTop="false"
android:textIsSelectable="true"
android:focusable="false"
android:focusableInTouchMode="false"
android:clickable="false"
ListFragment layout:
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
Row item layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="80dp"
android:gravity="center_vertical"
android:orientation="vertical"
android:weightSum="2" >
<TextView
android:id="@+id/tv_emergency_number_name"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_marginLeft="10dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:textSize="17sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tv_emergency_number"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_marginLeft="5dp"
android:layout_weight="1"
android:gravity="center_vertical|left"
android:textSize="15sp" />
</LinearLayout>
Do you have any clue whats wrong with it?