Android 展开折叠可展开列表视图

Android 展开折叠可展开列表视图,android,expand,Android,Expand,我在tablelayout中有一个自定义的ExpandableListView: <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/scrollView1" android:layout_width="fill_parent" androi

我在tablelayout中有一个自定义的ExpandableListView:

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/scrollView1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:padding="5dip" 
    android:background="@drawable/back_ground">

<TableLayout 
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:stretchColumns="2" >

<TableRow >
         <EditText
              android:id="@+id/T_V"
              android:layout_width="100dip"
              android:layout_height="40dip"  
              android:inputType="text"                  
              />

         <Button
             android:id="@+id/btn_V"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:background="@drawable/loupe" />

         <TextView
              android:id="@+id/lb_Vide1"
              android:layout_width="100dip"
              android:layout_height="wrap_content"                    
              />                 
     </TableRow>

            <View
        android:layout_height="2dip"
        android:background="#FF909090" />


     <ExpandableListView
         android:id="@+id/ExpLV_V"
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:groupIndicator="@null"
         android:windowSoftInputMode="stateAlwaysVisible" >

<TableRow >
         <EditText
              android:id="@+id/T_E"
              android:layout_width="100dip"
              android:layout_height="40dip"  
              android:inputType="text"                        
              />

         <Button
             android:id="@+id/btn_E"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:background="@drawable/loupe" />    
         <TextView        
              android:id="@+id/l_Emb"
              android:layout_width="fill_parent"
              android:layout_height="30dip"     
              android:layout_marginLeft="5dp"               
              android:textColor="@color/cl_black" />                 
     </TableRow>

</TableLayout>

 </ScrollView>

在我想在ExpListView中显示的布局中,我有10个TextView
问题是,当我展开ExpandableListView时,我不能显示所有的TextView(ExpistView的高度相同,它不会改变)

滚动视图中不能有
列表视图(
ExpandableListView
毕竟是一个列表视图)。罗曼·盖伊简要说明了原因


您需要重新考虑布局。

在TableLayout之后添加ExpandedListView而不是在TableLayout内部。它会起作用的。 或者您可以使用2种不同的布局