Android ExpandableListView没有';使用LinearLayout更改CheckedView时无法展开

Android ExpandableListView没有';使用LinearLayout更改CheckedView时无法展开,android,Android,我有行可扩展列表 <CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="60dp" an

我有行可扩展列表

<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/textView1"
    android:layout_width="wrap_content"
    android:layout_height="60dp"
    android:layout_marginLeft="5dp"
    android:gravity="center_vertical"
    android:text="@string/hello_world"
    android:textColor="#FFFFFF"
    android:padding="10dp"
    android:textSelectHandleLeft="@string/hello_world"
    android:textSize="14sp"
    android:textStyle="bold" >
    </CheckedTextView>

<!--<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="40dp"
    android:layout_gravity="center_vertical|center_horizontal"
    android:clickable="true"
    android:focusable="true"
    android:gravity="center_vertical|center_horizontal"
    android:orientation="horizontal"
    android:paddingBottom="5dp"
    android:paddingLeft="5dp"
    android:paddingRight="5dp"
    android:paddingTop="5dp" >

<TextView
        android:id="@+id/text_view_1"
        style="@style/row"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:clickable="false"
        android:focusable="false"
        android:padding="10dp"
        android:singleLine="false" />

    <TextView
        android:id="@+id/text_view_2"
        style="@style/row"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_weight="3"
        android:background="@color/expanded_row_points"
        android:clickable="false"
        android:focusable="false"
        android:padding="10dp"
        android:singleLine="false"
        android:textColor="@color/white" />

</LinearLayout>-->

当我将CheckedTextView(已注释的checkedview和已注释的linearlayout)更改为下面已注释的linearlayout时,列表不会展开;当is checkedview未注释且linearlayout已注释时,它不会引发事件(不会展开)。
什么是问题,有人知道吗?

很难理解您的问题,但如果您使用线性布局作为单元格布局,则此:

android:clickable="true"
android:focusable="true"
可能正在覆盖默认的单击处理。由于单元格布局正在使用单击,因此listview永远不知道如何展开