ExpandableLayout icon indicating copy to clipboard operation
ExpandableLayout copied to clipboard

ExpandableRelativeLayout not work app:ael_expanded = false in child fragment

Open vishalpatel1327 opened this issue 8 years ago • 3 comments

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

vishalpatel1327 avatar May 16 '16 12:05 vishalpatel1327

Confirmed

linermgn avatar Jun 03 '16 03:06 linermgn

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);
            }
        });

julianfalcionelli avatar Jun 11 '16 15:06 julianfalcionelli

@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());
    }

intmainwjj avatar Sep 26 '17 07:09 intmainwjj