How to add shadow on CardView aligned to bottom of parent

前端 未结 4 730
闹比i
闹比i 2020-12-13 15:57

I have a CardView aligned bottom to screen, destpite the elevation I want to add more shadow to top of the CardView. I\'ve tried with

  android:shadowColor=         


        
4条回答
  •  無奈伤痛
    2020-12-13 16:15

    Well margin don't help much, so I put padding on main container and remove all those shadow properties because the android:elevation="" is what is doing the job.

    Here is some clear code, that is working for this need:

    
    
      
    
      
        
    
             
        
      
    
    
    

    And an image on how this looks:

提交回复
热议问题