[Bugs] Sidemenu Components

I create custom menu and use this block to load the custom menu
image

The custom menu created in VerticalArrangement

When custom menu opened the size of the menu is automatically change but I set the VerticalArrangement size :

Height: Fill parent
Width: Fill parent

Also if the companion is refresh more then 2 times the companion app crashing if there was Custom menu component or block types something.

1 Like

Pm me your aia

java.lang.IllegalStateException: Child drawer has absolute gravity LEFT but this DrawerLayout already has a drawer view along that edge
 at androidx.drawerlayout.widget.DrawerLayout.onMeasure(DrawerLayout.java:1134)
 at android.view.View.measure(View.java:26557)
 at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7022)
 at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
 at androidx.appcompat.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:145)
 at android.view.View.measure(View.java:26557)
 at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7022)
 at androidx.appcompat.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:496)
 at android.view.View.measure(View.java:26557)
 at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7022)
 at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
 at android.view.View.measure(View.java:26557)
 at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7022)
 at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1552)
 at android.widget.LinearLayout.measureVertical(LinearLayout.java:842)
 at android.widget.LinearLayout.onMeasure(LinearLayout.java:721)
 at android.view.View.measure(View.java:26557)
 at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7022)
 at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
 at com.android.internal.policy.DecorView.onMeasure(DecorView.java:835)
 at android.view.View.measure(View.java:26557)
 at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:4142)
 at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:2836)
 at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3113)
 at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2543)
 at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9465)
 at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1451)
 at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1459)
 at android.view.Choreographer.doCallbacks(Choreographer.java:1089)
 at android.view.Choreographer.doFrame(Choreographer.java:1003)
 at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1431)
 at android.os.Handler.handleCallback(Handler.java:942)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loopOnce(Looper.java:211)
 at android.os.Looper.loop(Looper.java:300)
 at android.app.ActivityThread.main(ActivityThread.java:8296)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)

Try the new companion

1 Like

Nothing change??

Same happening to me
i think it is bug of custom component

I have fixed it by add horizontal arrangemet inside the main layout and specify widht which i put 350px
Result

2 Likes

Thanks a lot! You’re saving my time :smiling_face_with_three_hearts:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.