Android DiagonalLayout java.lang.IllegalArgumentException:路径必须是凸的
我使用DiagonalLayout创建了我的应用程序。 (https://github.com/florent37/DiagonalLayout)
我真的很困惑,因为在真实的设备上工作正常,但在模拟器上,当我设置以下参数:应用程序:diagonal_angle =“10”我的应用程序崩溃,并得到以下错误:
java.lang.IllegalArgumentException:路径必须是凸的
任何想法,为什么这是?
堆栈跟踪:
java.lang.IllegalArgumentException:路径必须在android.graphics.Outline.setConvexPath(Outline.java:216)处凸出,位于android.view的com.github.florent37.diagonallayout.DiagonalLayout $ 1.getOutline(DiagonalLayout.java:151)处。 View.java:11227)在android.view.View.invalidateOutline(View.java:11200)处的android.view.View.setOutlineProvider(View.java:11181)在com.github.florent37.diagonallayout.DiagonalLayout上的View.revaildOutline(View.java:11227) .calculateLayout(DiagonalLayout.java:76)在android.view.ViewGroup上的android.view.View.layout(View.java:15671)上的com.github.florent37.diagonallayout.DiagonalLayout.onLayout(DiagonalLayout.java:186)。在android.view.ViewGroup.layout(ViewGroup.java)的android.view.View.layout(View.java:15671)处的android.widget.RelativeLayout.onLayout(RelativeLayout.java:1076)处的layout(ViewGroup.java:5038) :5038)at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1193)at android.view.View.layout(View.java:15671)at android.view.ViewGroup.layout(ViewGroup.java: 5038)at a ndroid.widget.FrameLayout.layoutChildren(FrameLayout.java:579)at android.widget.FrameLayout.onLayout(FrameLayout.java:514)at android.view.View.layout(View.java:15671)at android.view.ViewGroup .layout(ViewGroup.java:5038)at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)at android.widget.LinearLayout.onLayout(LinearLayout。在Android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)在android.view.ViewGroup.layout(ViewGroup.java:5038)在android.view.View.layout(View.java:15671) android.widget.FrameLayout.onLayout(FrameLayout.java:514)at android.view.View.layout(View.java:15671)at android.view.ViewGroup.layout(ViewGroup.java:5038)at android.widget.LinearLayout .setChildFrame(LinearLayout.java:1703)at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)at android.view.View.layout(View。 Java的:15671) 在android.view.android.widget.FrameLayout.onLayout(FrameLayout.java:514)处的android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)处的android.view.ViewGroup.layout(ViewGroup.java:5038)。 view.layout(View.java:15671)at android.view.ViewGroup.layout(ViewGroup.java:5038)at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2086)at android.view.ViewRootImpl.performTraversals(ViewRootImpl .java:1843)at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061)at android.view.ViewRootImpl $ TraversalRunnable.run(ViewRootImpl.java:5885)at android.view.Choreographer $ CallbackRecord.run(Choreographer。在Android.view.Choreographer.doFrame(Choreographer.java:550)在android.view.Choreographer $ FrameDisplayEventReceiver.run(Choreographer.java:753)在android.view.Choreographer.doCallbacks(Choreographer.java:580) )在android.os.Handler.handleCallback(Handler.java:739)at android.os.Handler.dispatchMessage(Handler.java:95)at android.os.Looper.loop(Looper.java:135)at android.app.ActivityThread.main(ActivityThread.java:5254)at java.lang.reflect.Method.invoke(Native Method)at com.android上的java.lang.reflect.Method.invoke(Method.java:372)。 internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:903)at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
链接地址: http://www.djcxy.com/p/93151.html上一篇: Android DiagonalLayout java.lang.IllegalArgumentException: path must be convex