ExpandableLayout
ExpandableLayout copied to clipboard
Nested ExpandableLinearLayout does not work correctly
Seems like there is an issue with nested expandable layouts. I have two ExpandableLinearLayout. One ExpandableLinearLayout nested into RelativeLayout and nested into another ExpandableLinearLayout with vertical orientation. I also have buttons to control layouts expanding/collapsing. Here is markup:
<com.github.aakira.expandablelayout.ExpandableLinearLayout
android:id="@+id/outer_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<Button
android:id="@+id/inner_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Toggle inner"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.github.aakira.expandablelayout.ExpandableLinearLayout
android:id="@+id/inner_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="match_parent"
android:layout_height="100dp"
android:background="@color/colorAccent"
android:text="Nested"/>
</RelativeLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="100dp"
android:background="@color/colorPrimary"
android:text="Nested 2"/>
</com.github.aakira.expandablelayout.ExpandableLinearLayout>
</RelativeLayout>
</com.github.aakira.expandablelayout.ExpandableLinearLayout>
<Button
android:id="@+id/outer_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Toggle outer"/>
So, the problem in nested ExpandableLinearLayout. When I try to expand/collapse it nothing happens. I've created demo project.
It's a critical issue for me. Any ideas it can be resolved?
I faced with the same issue. Any progress/plans regarding this?
Any update on this issue yet?