gpt4 book ai didi

android - 如何在com.slidingmenu.lib.CustomViewAbove.dispatchDraw(CustomViewAbove.java :832)

转载 作者:行者123 更新时间:2023-11-29 21:34:43 26 4
gpt4 key购买 nike

我正在使用 Slidemenu 库,但出现错误请告诉我如何解决此错误

enter code here

09-07 11:18:20.906: E/AndroidRuntime(26322): FATAL EXCEPTION: main
09-07 11:18:20.906: E/AndroidRuntime(26322): java.lang.StackOverflowError
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.text.Layout.drawText(Layout.java:1387)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.text.Layout.draw(Layout.java:370)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.widget.TextView.onDraw(TextView.java:4194)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.View.draw(View.java:6740)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.View.draw(View.java:6743)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.View.draw(View.java:6743)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.View.draw(View.java:6743)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.View.draw(View.java:6743)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.View.draw(View.java:6743)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.widget.FrameLayout.draw(FrameLayout.java:352)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at com.slidingmenu.lib.CustomViewAbove.dispatchDraw(CustomViewAbove.java:832)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.View.draw(View.java:6743)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.View.draw(View.java:6743)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.View.draw(View.java:6743)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.widget.FrameLayout.draw(FrameLayout.java:352)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.View.draw(View.java:6743)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.widget.FrameLayout.draw(FrameLayout.java:352)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.View.draw(View.java:6743)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.widget.FrameLayout.draw(FrameLayout.java:352)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.View.draw(View.java:6743)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.widget.FrameLayout.draw(FrameLayout.java:352)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.View.draw(View.java:6743)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.widget.FrameLayout.draw(FrameLayout.java:352)
09-07 11:18:20.906: E/AndroidRuntime(26322): at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2049)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewRoot.draw(ViewRoot.java:1429)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewRoot.performTraversals(ViewRoot.java:1172)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.view.ViewRoot.handleMessage(ViewRoot.java:1749)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.os.Handler.dispatchMessage(Handler.java:99)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.os.Looper.loop(Looper.java:123)
09-07 11:18:20.906: E/AndroidRuntime(26322): at android.app.ActivityThread.main(ActivityThread.java:4627)
09-07 11:18:20.906: E/AndroidRuntime(26322): at java.lang.reflect.Method.invokeNative(Native Method)
09-07 11:18:20.906: E/AndroidRuntime(26322): at java.

最佳答案

我从未使用过这个库,但似乎您的菜单使您的 View 层次结构太深(嵌套层太多)。使用 Hierarchy Viewer 检查树的深度,不应超过 10-12 层。

关于android - 如何在com.slidingmenu.lib.CustomViewAbove.dispatchDraw(CustomViewAbove.java :832),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18670228/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com