Comments (5)
@comeondude
The same is right for ExpandableWeightLayout also. Even if 'expanded' is true, this bug appears.
from expandablelayout.
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.
Hi @AAkira, Was this issue resolved ?
PS - Thanks for the awesome library
from expandablelayout.
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.
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)
- Very nice
- Option onClick
- How collapse when activity viewed? HOT 1
- Collapse at certain height? HOT 1
- Recyclerview collapse mode : Unwanted negative space HOT 1
- Change the arrow icon
- Measured height for programatically added view is larger than actual size
- expand issue HOT 6
- Expandable Relative Layout not shows data in recyclerView got from server HOT 1
- After update 27 api its not supporting, what is another solutions?
- app get crashed when i add more than 5 elements in recycler view
- After changing one of children's visibility ExpandableLinearLayout is not resized
- Expand single child at a time in Expandable Linear Layout
- Expandable ExpandedLinearLayout object height HOT 1
- expand and collapse does not work in android 9 HOT 1
- IllegalStateException: at com.github.aakira.expandablelayout.ExpandableLinearLayout.onMeasure (ExpandableLinearLayout.java:140) HOT 2
- ExpandableLinearLayout in recycler view affects animations HOT 1
- Expand issue
- JCenter is at end of life
- JCenter replacement
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from expandablelayout.