Code Monkey home page Code Monkey logo

Comments (5)

zanctor avatar zanctor commented on August 28, 2024

@comeondude
The same is right for ExpandableWeightLayout also. Even if 'expanded' is true, this bug appears.

from expandablelayout.

victorileaf avatar victorileaf commented on August 28, 2024

I had the same problem .i was using view pager. even if i set 'expanded' to false. the layout remains open. i tried many things, all ending in problems where layout wont pop up anymore.
Expanable layout as a fragment in view pager.
Atlast i was able to solve the problem

At first the layout was like
[CoordinatorLayout]
[Viewpager]
[/CoordinatorLayout]

I changed layout to
[RelativeLayout]
[CoordinatorLayout]
[Viewpager]
[/CoordinatorLayout]
[/RelativeLayout]

and the expandable layout works like in activity!
remains closed and pop up on click.
Discovered accidentally . :)

from expandablelayout.

 avatar commented on August 28, 2024

Hi @AAkira, Was this issue resolved ?

PS - Thanks for the awesome library

from expandablelayout.

fahimshahrierrasel avatar fahimshahrierrasel commented on August 28, 2024

Guys first check the state of the expandable when creating it. Even if it is expanded before for bug or somethings else you can collapse it by code.
I solved my problem this way. I hope this may help you.

private boolean expandState = false;
@Override
public void onCreate(Bundle savedInstanceState)
 {
    if(!expandState)
    {
         expandableRelativeLayout.collapse();
    }
    // Other things with expandableRelativeLayout
    // ............. 
}

from expandablelayout.

 avatar commented on August 28, 2024

This issue still can be reproduced.

    <com.github.aakira.expandablelayout.ExpandableRelativeLayout

                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentTop="true"
                android:layout_marginTop="@dimen/double_margin_map"
                android:id="@+id/about_offer"
                app:ael_expanded="false"
                app:ael_duration="500"
                app:ael_orientation="vertical"

        >

            <include
                    layout="@layout/terms_of_use"
            />
        </com.github.aakira.expandablelayout.ExpandableRelativeLayout>

above XML results in expanded ExpandableRelativeLayout by-default. This behaviour is same even in IntelliJ idea layout preview.

from expandablelayout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.