How to show shadow around the linearlayout in Android?

前端 未结 13 2558
名媛妹妹
名媛妹妹 2020-11-27 10:51

How can I show shadow for my linear layout. I want white colored rounded background with shadow around the linearlayout. I have done this so far.



        
13条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-27 11:16

    Try this.. layout_shadow.xml

    
    
        
            
                
                
            
        
    
        
            
                
                
            
        
    
    

    Apply to your layout like this

     android:background="@drawable/layout_shadow"
    

提交回复
热议问题