Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

DrawerLayout must be measured with MeasureSpec.EXACTLY #43

Closed
bleege opened this issue Nov 2, 2015 · 3 comments
Closed

DrawerLayout must be measured with MeasureSpec.EXACTLY #43

bleege opened this issue Nov 2, 2015 · 3 comments
Labels

Comments

@bleege
Copy link
Contributor

bleege commented Nov 2, 2015

Issue from Fabric:

https://fabric.io/mapbox4/android/apps/com.mapbox.mapboxandroiddemo/issues/56378a7ff5d3a7f76b4484e3

screen shot 2015-11-02 at 12 17 11 pm

Fatal Exception: java.lang.IllegalArgumentException: DrawerLayout must be measured with MeasureSpec.EXACTLY.
       at android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java)
       at android.view.View.measure(View.java)
       at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java)
       at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java)
       at android.widget.LinearLayout.measureHorizontal(LinearLayout.java)
       at android.widget.LinearLayout.onMeasure(LinearLayout.java)
       at android.view.View.measure(View.java)
       at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java)
       at android.widget.RelativeLayout.onMeasure(RelativeLayout.java)
       at android.view.View.measure(View.java)
       at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java)
       at android.widget.FrameLayout.onMeasure(FrameLayout.java)
       at android.support.v7.internal.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java)
       at android.view.View.measure(View.java)
       at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java)
       at android.support.v7.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java)
       at android.view.View.measure(View.java)
       at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java)
       at android.widget.FrameLayout.onMeasure(FrameLayout.java)
       at android.view.View.measure(View.java)
       at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java)
       at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java)
       at android.widget.LinearLayout.measureVertical(LinearLayout.java)
       at android.widget.LinearLayout.onMeasure(LinearLayout.java)
       at android.view.View.measure(View.java)
       at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java)
       at android.widget.FrameLayout.onMeasure(FrameLayout.java)
       at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java)
       at android.view.View.measure(View.java)
       at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java)
       at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java)
       at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java)
       at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java)
       at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java)
       at android.view.Choreographer$CallbackRecord.run(Choreographer.java)
       at android.view.Choreographer.doCallbacks(Choreographer.java)
       at android.view.Choreographer.doFrame(Choreographer.java)
       at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java)
       at android.os.Handler.handleCallback(Handler.java)
       at android.os.Handler.dispatchMessage(Handler.java)
       at android.os.Looper.loop(Looper.java)
       at android.app.ActivityThread.main(ActivityThread.java)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
       at dalvik.system.NativeStart.main(NativeStart.java)
@bleege bleege added the bug 🐛 label Nov 2, 2015
@daisuke-nomura
Copy link
Contributor

Where is DrawerLayout code in this project?

@bleege
Copy link
Contributor Author

bleege commented Nov 4, 2015

Where is DrawerLayout code in this project?

Exactly. 😃

Looks like an issue integrating with the current version of the Android Support Library. Only one way to find out for sure. 😉

@cammace
Copy link
Contributor

cammace commented Jun 13, 2016

Not a relevant ticket anymore since we replaced the old demo app with a completely new one, closing!

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

No branches or pull requests

3 participants