ExpandableLayout icon indicating copy to clipboard operation
ExpandableLayout copied to clipboard

Nested ExpandableLinearLayout does not work correctly

Open yamelkaya opened this issue 9 years ago • 2 comments

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?

yamelkaya avatar Sep 13 '16 13:09 yamelkaya

I faced with the same issue. Any progress/plans regarding this?

ivankarpey avatar Oct 13 '16 12:10 ivankarpey

Any update on this issue yet?

princealirehman1 avatar Jun 25 '19 05:06 princealirehman1