How to show shadow around the linearlayout in Android?

前端 未结 13 2563
名媛妹妹
名媛妹妹 2020-11-27 10:51

How can I show shadow for my linear layout. I want white colored rounded background with shadow around the linearlayout. I have done this so far.



        
13条回答
  •  悲&欢浪女
    2020-11-27 11:25

    i know this is way too late. but i had the same requirement. i solved like this

    
    
    
    
    
    

    you need to add dependency:

    compile 'com.android.support:cardview-v7:25.0.1'
    

提交回复
热议问题