What is the android UI thread stack size limit and how to overcome it?

后端 未结 5 2078
一个人的身影
一个人的身影 2020-11-30 03:33

I\'m getting java.lang.StackOverflowErrors when my view hierarchy is being drawn:

at android.view.View.draw(View.java:6880)
at android.view.         


        
5条回答
  •  隐瞒了意图╮
    2020-11-30 03:47

    Crazy idea 5 - May be not so crazy. I explain you the theory and you try implementing it some how. Lets say we have 3 nested views A > B > C. Instead of C be nested in B make it nested in D(some unrelated view) and when B will go to draw him self he need to call B.draw(). Of-course the problems you may run in to is bad layout. But it's possible to find solutions for that.

提交回复
热议问题