Drawable as Background for CardView

后端 未结 11 1004
傲寒
傲寒 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条回答
  •  南笙
    南笙 (楼主)
    2020-12-08 03:02

    Try this

    
    
    
        
    
           
    
        
    
    

    card_view:cardBackgroundColor="@android:color/holo_green_dark

    here you can set any color or make it transparent by giving color transparent and if u wand some drawable like image or svg put RelativeLayout background

提交回复
热议问题