<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
<TextView
android:id="@+id/list_name"
android:includeFontPadding="false"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10dip"
android:textSize="30sp"
android:text="@string/name"
android:textColor="?android:attr/textColorPrimary"/>
<TextView
android:id="@+id/list_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10dip"
android:textSize="20sp"
android:text="@string/number"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="#FF0FFF0F" />
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusable="true" //此处设置为true,会导致单击无效,false正常单击,最好不要在这加此属性
<TextView
android:id="@+id/list_name"
android:includeFontPadding="false"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10dip"
android:textSize="30sp"
android:text="@string/name"
android:textColor="?android:attr/textColorPrimary"/>
<TextView
android:id="@+id/list_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10dip"
android:textSize="20sp"
android:text="@string/number"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="#FF0FFF0F" />
</LinearLayout>