Elements below Expandble listview in android -
i using expandablelistview in android application.the problem facing if have elements such textview below expandablelistview, hidden when group clicked , children displayed.this happends when use linearlayout.following code:
<linearlayout android:orientation="vertical" android:layout_height="fill_parent" android:layout_width="fill_parent" > <expandablelistview android:id="@android:id/list" style="@style/liststyle" android:layout_width="fill_parent" android:layout_height="wrap_content" android:groupindicator="@drawable/group_indicator" /> <textview android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="textview below expandablelistview" /> </linearlayout> if replace linearlayout relativelayout, reverse happens. textview not hidden either chidren of open group or lower groups in list hidden below textview.how can solve probem?
add line code :
android:layout_weight="1" it follow :
<linearlayout android:orientation="vertical" android:layout_height="fill_parent" android:layout_width="fill_parent" > <expandablelistview android:id="@android:id/list" style="@style/liststyle" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:groupindicator="@drawable/group_indicator" /> <textview android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="textview below expandablelistview" /> </linearlayout> hope .
Comments
Post a Comment