Drawable as Background for CardView

后端 未结 11 1003
傲寒
傲寒 2020-12-08 02:29

the CardView ( android.support.v7.cardview ) stays white even though I set a backround drawable via android:backround - The documentation gives me the feeling that it should

11条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-08 03:02

    You can simply use the below line in your xml file.

    app:cardBackgroundColor="@drawable/your_custom_theme_here"
    

提交回复
热议问题