Setting Elevation in XML on AppCompat CardView on Android 5.0

后端 未结 5 2043
梦如初夏
梦如初夏 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:37

    It solved me by adding

    xmlns:card_view="http://schemas.android.com/apk/res-auto"

    for example:

    
    

提交回复
热议问题