Skip to content Skip to sidebar Skip to footer

Remove Background From Imagecardview

I started using new android.support.v17.leanback library and have some trouble in styling ImageCardView. I am changing the image on ImageCardView to have a different shape so I wo

Solution 1:

Your problem is not about the CardView itself, it's about your presenter. Put this line your RowPresenter/ListRowPresenter:

listRowPresenter.setShadowEnabled(false);

Furthermore, in this Medium article you can see how to make you CardView circular. And where it shows how to remove the shadow when the row is not focused, overriding the isUsingDefaultListSelectEffect() method to be always false.

Solution 2:

According to this post, you cannot change the background drawable, only the color.

You can try

public void setBackground (Drawable background)
-Set the backgroundtoa given Drawable, or remove the background

Post a Comment for "Remove Background From Imagecardview"