how to set shadow to a View in android?

后端 未结 6 1281
醉话见心
醉话见心 2020-11-27 03:24

I want to know how to add a shadow layer to any general View in android. for eg: suppose i have a layout xml, showing something like this..



        
6条回答
  •  感情败类
    2020-11-27 04:25

    
                
    

    Use Just Below the LinearLayout

    Another Method

    create "rounded_corner_bg.xml" in /drawable folder

    
    
    
    
        
            
    
            
        
    
    
    
        
            
    
            
        
    
    
    
    

    To use this Layout android:background="@drawable/rounded_corner_bg"

提交回复
热议问题