Skip to content Skip to sidebar Skip to footer

How To Solve At Com.slidingmenu.lib.customviewabove.dispatchdraw(customviewabove.java:832)

I am using the Slidemenu Library and i get the error Please told me how to solve this error enter code here 09-07 11:18:20.906: E/AndroidRuntime(26322): FATAL EXCEPTION: main 09-

Solution 1:

I've never used this library but it seems that your menu is making your view hierarchy too deep (too many nested layers). Use Hierarchy Viewer to examine the depth of the tree, you shouldn't exceed 10-12 layers.

Solution 2:

Take a look at your code that generates your fragments, you are probably creating several times the same fragments. You can try two options:

  1. Don't recreate your fragments if they are already != null. You can add a simples code to check this and ignore the creation step.

  2. Maybe you need your fragments alive, and must not recreate then, you can use this method getSupportFragmentManager().findFragmentByTag to get a already created fragment.

Post a Comment for "How To Solve At Com.slidingmenu.lib.customviewabove.dispatchdraw(customviewabove.java:832)"