How can I disable a view behind my SlidingDrawer in Android?

后端 未结 5 2156
后悔当初
后悔当初 2021-01-01 16:56

I have a SlidingDrawer that pops up from the bottom of the screen and fills the screen about 80%. Even though the SlidingDrawer view is in focus, it is still possible to cli

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-01 17:24

    In side Layout do android:clickable="true"

    For Example Following file is drawer.xml

    Inside LinearLayout android:id="@+id/drawer_view" clickable="true"

    
    
    
            
    
                  
    
            
    
                
    
                    
    
                    
    
                        
    
                        
                    
                
    
                
    
                
            
    
        
    

提交回复
热议问题