Android ExpandableListView-组行不会在单击时作出反应

Android ExpandableListView-组行不会在单击时作出反应,android,android-listview,expandablelistview,Android,Android Listview,Expandablelistview,我有一个ExpandableListView和一个CheckedTextView作为grouprow视图。但是我需要减少组之间的间距,所以我将它放在线性布局中。从那时起,这个列表就没有扩展,只是点击后没有反应。有什么想法吗?代码如下 grouprow.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/to

我有一个
ExpandableListView
和一个
CheckedTextView
作为grouprow视图。但是我需要减少组之间的间距,所以我将它放在
线性布局中。从那时起,这个列表就没有扩展,只是点击后没有反应。有什么想法吗?代码如下

grouprow.xml

  <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="wrap_content"
android:id="@+id/holder"
android:clickable="true"
android:orientation="vertical">
<CheckedTextView 

android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="-13dp"
android:layout_marginBottom="-13dp"
android:text="@string/hello_world"
android:paddingLeft="20dp"
android:textColor="#FFFFFF"
android:textSize="60sp"
android:includeFontPadding="false"
android:textStyle="bold" />
 </LinearLayout>

通过将
LinearLayout
CheckedTextView
设置为不可单击,解决了此问题

       @Override
public View getGroupView(int groupPosition, boolean isExpanded,
        View convertView, ViewGroup parent) {
    if (convertView == null) {

        convertView = minflater.inflate(R.layout.grouprow, null);
    }
    LinearLayout holder = (LinearLayout) convertView;
    CheckedTextView txtGr = (CheckedTextView)    holder.findViewById(R.id.textView1);
    txtGr.setText(groupItem.get(groupPosition));
    txtGr.setChecked(isExpanded);
    font = Typeface.createFromAsset(activity.getAssets(),
            "uww.otf");
    txtGr.setTypeface(font);
    return convertView;
}