我有一个scrollview,在LinearLayout内部和expandablelistview内。但是expandablelistview被削减了。但是,如果我删除scrollview,expandablelistview看起来不错。这是我的代码:
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scrollView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fillViewport="true"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/fondo"
android:orientation="vertical" >
<ExpandableListView
android:id="@+id/lvExp"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
</ExpandableListView>...
我能做什么?感谢
答案 0 :(得分:0)
*//make height to fill parent
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scrollView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent" //make height to fill parent
android:fillViewport="true"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/fondo"
android:orientation="vertical" >
<ExpandableListView
android:id="@+id/lvExp"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
</ExpandableListView>...*