Setting Elevation in XML on AppCompat CardView on Android 5.0

后端 未结 5 2067
梦如初夏
梦如初夏 2020-12-12 16:07

From what I understand, early in the preview stage there seemed to be no way to set elevation in XML only on CardViews without a hack in Java. Now that the offi

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-12 16:42

    i am adding an app:cardElevation="8dp" attribute on card view, so it will be like :

    
    
            
    
        
    

    Hope it will help

提交回复
热议问题