-
Notifications
You must be signed in to change notification settings - Fork 324
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
ExpandableLinearLayout not animating vertically even if app:ael_orientation = "vertical" #79
Comments
I'm having exactly the same problem! |
Hello AbduazizKayumov, I managed to find a solution for this problem. I have also text that is coming from server so it will change it's size dynamically. You have to use ExpandableRelativeLayout like this:
Note here that I use: android:visibility="gone" by default. This makes view invisible at first. We will make it visible on Java code. Then on Java code, add function like this, before you call your mOverlayText.setOnClickListener(new View.OnClickListener() public void makeViewsVisible() {
} You have to also call this function from inside your mOverlayText.setOnClickListener(new View.OnClickListener(). For me it works, does not matter that I have text coming from server. Also there is no problem with animation. Hope this helps! |
I had the same issue, the that I found is to use |
@dude0367 your solution fixed it for me. I have both ael_orientation=vertical and android:orientation='vertical' and it works now. Thanks |
ael_orientation=vertical and android:orientation='vertical' and it works now. Thanks |
Not working for me.
With this works fine. |
Here is my xml:
`
`
And this is my fragment code snippet:
`mExpandLayout = (ExpandableLinearLayout) root.findViewById(R.id.expandableLayout);
mOverlayText = (TextView) root.findViewById(R.id.overlayText);
I should use ExpandableLinearLayout since the child will chage its size. Please, help!
The text was updated successfully, but these errors were encountered: