Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested ExpandableLinearLayout does not work correctly #93

Open
yamelkaya opened this issue Sep 13, 2016 · 2 comments
Open

Nested ExpandableLinearLayout does not work correctly #93

yamelkaya opened this issue Sep 13, 2016 · 2 comments

Comments

@yamelkaya
Copy link

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?

@ivankarpey
Copy link

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

@princealirehman1
Copy link

Any update on this issue yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants