ExpandableLayout
ExpandableLayout copied to clipboard
ExpandableRelativeLayout height issues
Hi there,
I like your library, but currently I am facing an issue. I have some CardViews, each one containing an ExpandableRelativeLayout. In CardView 1 there is a RadioGroup which manipulates the visibility of some Views in CardView 3 to VISIBLE or GONE. But the height of CardView 3 is too large after some Views are GONE. Using some requestLayout() calls won't help. Somehow the new height must be measured. Do you know a function for this?
I am sorry NOT to send some code...
Placing a second ExpandableRelativeLayout into the first one causes a similiar problem. The inner one does not expand or collapse correctly, becourse the height of the outside container does not change.
Best regards, DaRolla
calling initLayout(false) as I read in issue #24 didn't help
@DaRolla
I release v1.5.0. Please check it.
im using v1.5.1 and the isssue is still on, i made the next work around, i dont know how good it is but for few items it works fine. i hope it helps
expandLayout.expand();
expandLayout.setListener(new ExpandableLayoutListener() {
@Override
public void onAnimationStart() {
}
@Override
public void onAnimationEnd() {
}
@Override
public void onPreOpen() {
}
@Override
public void onPreClose() {
}
@Override
public void onOpened() {
expandLayout.setLayoutParams(new RelativeLayout.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
}
@Override
public void onClosed() {
}
});