ExpandableLayout
ExpandableLayout copied to clipboard
ExpandableRelativeLayout not work app:ael_expanded = false in child fragment
ExpandableRelativeLayout not work app:ael_expanded = false in child fragment version 1.5.1
to much issue in child fragemt but it work in activity great pls help
Confirmed
yes, and by setting visibility gone doesn't work.
By time i just collapse the view in the onCreateView method:
mExpandableLayout.post(new Runnable()
{
@Override
public void run()
{
mExpandableLayout.collapse(-1, null);
}
});
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
if (isCalculatedSize) return;
final int measureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
if (isVertical()) {
int measuredHeight = getMeasuredHeight();
super.onMeasure(widthMeasureSpec, measureSpec);
layoutSize = getMeasuredHeight();
setMeasuredDimension(getMeasuredWidth(), defaultExpanded ? measuredHeight : closePosition);
} else {
int measuredWidth = getMeasuredWidth();
super.onMeasure(measureSpec, heightMeasureSpec);
layoutSize = getMeasuredWidth();
setMeasuredDimension(defaultExpanded ? measuredWidth : closePosition, getMeasuredHeight());
}