How to add a blurred drop shadow to a button?

后端 未结 5 2213
不知归路
不知归路 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:19

    Create drawable shadow.xml file

    
    
    
    
    
    
    

    Create another drawable background.xml file

    
    
    
    
        
            
            
            
        
    
    

    and use this file in xml as below.

    
    
    
    

    Hope it Helps.

提交回复
热议问题