activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:android1="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ffffff"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:orientation="vertical" >
<ScrollView
android1:id="@+id/scrollView1"
android1:layout_width="match_parent"
android1:layout_height="match_parent"
android:cacheColorHint="#ffffff"
android:scrollingCache="false" >
<LinearLayout
android1:id="@+id/mainView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="5dp"
android1:orientation="vertical">
</LinearLayout>
</ScrollView>
</LinearLayout>
lista.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="5dp" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView" />
<ExpandableListView
android:id="@+id/expandableListView1"
android:layout_below="@+id/textView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:clickable="false"
android:scrollbars="none" >
</ExpandableListView>
</RelativeLayout>
lista.xml jest dodawana do mainView w activity_main.xml
Jeszcze są 2 layouty do groupy i childa listy.
W liście jest kilka GROUP (nagłówków), a lista jest pokazywana w szerokości tylko jednego nagłówka.