Remove these attributes :
android:focusableInTouchMode="false"
android:clickable="false"
android:focusable="false"
Add this attribute to your root layout:
android:descendantFocusability="blocksDescendants"
Edit:
Insert in the root LinearLayout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:descendantFocusability="blocksDescendants" >
<!-- Included header.xml here -->
<TableLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingTop="@dimen/activity_vertical_margin"
>
<TextView
android:id="@+id/titolodevicefragment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:textColor="#DB3232"
android:textSize="18dp"
android:fontFamily="sans-serif-condensed"
android:text="@string/titolosensorsfragment" />
<ListView
android:id="@+id/listView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</TableLayout>
</LinearLayout>