Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

failed to get measurement in height in setDimension. #78

Open
jjhesk opened this issue Mar 16, 2015 · 1 comment
Open

failed to get measurement in height in setDimension. #78

jjhesk opened this issue Mar 16, 2015 · 1 comment

Comments

@jjhesk
Copy link

jjhesk commented Mar 16, 2015

I am using API 21 and running on android 4.4.4 for the demo. After the debug time I have found that the height of the layout was not able to be generated started from this line. However, when I start running the demo project artbook and it works again.

@Override
    public void setDimensions(int measuredWidth, int measuredHeight) {
        if (measuredHeight == height && measuredWidth == width) {
            return;
        }
        this.width = measuredWidth;
        this.height = measuredHeight;
    }

My code is written under the ActionBarActivity. Are there any reason that will be malfunction? I would like to ask what are the things I need to know to avoid making a failure on measuredHeight?

@jjhesk
Copy link
Author

jjhesk commented Mar 16, 2015

Finally I found out that component <com.comcast.freeflow.core.FreeFlowContainer> cannot put under
RelativeLayout, ScrollView, LinearLayout but only can be run under FrameLayout. I think the system should remind the developer to put the <com.comcast.freeflow.core.FreeFlowContainer/> into the right layout.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant