how to set shadow to a View in android?

后端 未结 6 1288
醉话见心
醉话见心 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条回答
  •  Happy的楠姐
    2020-11-27 04:10

    Here's my cheesy version of the solution...This is the modification of the solution found here

    I didn't like how the corners look so I faded all of them...

    
    
    
    
    
    
    
    
    
        
            
            
        
    
    
    
        
            
            
        
    
    
    
        
            
    
            
        
    
    
    
        
            
            
        
    
    
    
        
            
            
        
    
    
    
    
        
            
        
    
    

提交回复
热议问题