The shadow part of Android DrawerLayout does not close when clicked, and can trigger related views

Related requirements: Android DrawerLayout needs to remove the shadow, and clicking on the shadow part does not close the drawer and can trigger the view here, and the drawer can be closed in response to side sliding.
I process the oninterceptTouchEvent of DrawerLayout:

@Override
public boolean onInterceptTouchEvent(MotionEvent ev){
   
    
    
    switch(ev.getAction()) {
   
    
    
        case 

Guess you like

Origin blog.csdn.net/qq_25749749/article/details/131867751