2013-12-11 36 views
1

我有一个滚动视图,在一个LinearLayout和一个expandablelistview内。但是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

任何帮助请 – user3092292

回答

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>...*