android - Expand Collapse ExpandableListView -
i have custom expandablelistview in tablelayout:
<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>
in layout want display in explistview have 10 textview probleme when expand expandablelistview can't show textview.(the height of explistview same,it doesn't change)
you can't have listview
(expandablelistview
listview after all) in scrollview
. romain guy explains here briefly why.
you need rethink layout.
Comments
Post a Comment