How to add a blurred drop shadow to a button?

后端 未结 5 2214
不知归路
不知归路 2020-12-23 12:21

I need to add blurred drop shadow to my button:

I tried to create background with layer-list xml drawable, but it not looks like blur.



        
5条回答
  •  滥情空心
    2020-12-23 13:06

    I add this as background drawable (grey drop shadow):

    
    
        
            
            
            
        
    
    
        
            
            
            
        
    
    
        
            
            
            
        
    
    
    
    
        
            
            
        
    
    

    Ensures the height/width/padding of textview large enough to contains above shadow 3dp (1dp+1dp+1dp for all colors from #3f000000 until #1f000000).

提交回复
热议问题