另一个问题下有两个ExpandableListView

时间:2015-08-26 13:42:43

标签: android scrollview expandablelistview

A normal case (what it should like)

The group is also included in scrolling part

我想要的是,下面的expandablelistview组不得像第二张图片那样包含在滚动部分中。那我该怎么办?

 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent" android:background="#FBFBE3">

<TextView android:id="@+id/clearFilter"
    android:textSize="17sp" android:textStyle="bold"
    android:layout_width="wrap_content" android:clickable="true"
    android:layout_height="wrap_content" android:typeface="monospace"/>

<ExpandableListView android:layout_marginStart="5dp"  android:layout_marginEnd="5dp"
    android:layout_width="match_parent" android:id="@+id/notesList"
    android:layout_height="wrap_content" android:childDivider="@drawable/divider"
    android:dividerHeight="1dp" android:groupIndicator="@null"/>

<ExpandableListView android:layout_marginTop="6dp"
    android:layout_marginStart="5dp" android:layout_marginEnd="5dp"
    android:layout_width="match_parent" android:id="@+id/checkList"
    android:layout_height="wrap_content" android:childDivider="@drawable/divider"
    android:dividerHeight="1dp" android:groupIndicator="@null"/>

0 个答案:

没有答案