I have a SurfaceView that needs to be set using setZOrderOnTop (true), is it possible that DrawerLayout opens above it. currently the surface is painting over the drawer.
In a similar situation, the solution from DrawerLayout, which does not work with Android 4.4 and SurfaceView, worked for me :
@Override public void onDrawerSlide(View drawerView, float slideOffset) { mDrawerLayout.bringChildToFront(drawerView); mDrawerLayout.requestLayout(); }
Inside your DrawerListener
Source: https://habr.com/ru/post/1530817/More articles:Android After adding apk size apmob increased too much - androidwhen multiple React DOM components are used without an external div, JSX will not compile - reactjsHow to print a queue? - c ++Additional scripts in an empty MVC5 project - visual-studio-2013Библиотека Js в браузере - javascriptDrawerLayout does not work with Android 4.4 and SurfaceView - androidHello World function without using C printf - assemblyBig O Difficulty Algorithm - performanceassembly language - assemblyDefinition Possibly Monad in Coq - functorAll Articles