Extending Android View class to add a dropshadow

前端 未结 3 852
生来不讨喜
生来不讨喜 2020-12-13 22:16

I want to extend LinearLayout so that when my layout is drawn a drop shadow is added underneath it. I\'ve played around overriding the onDraw metho

3条回答
  •  庸人自扰
    2020-12-13 22:19

    This is the simplest way of dropping shadow to any thing either layout, button etc. background.xml

        
        
            
                
                
                
                
            
            
                
                
                
                
            
        
    

    in your main.xml

    
    

提交回复
热议问题