I started using new android.support.v17.leanback
library and have some trouble in styling ImageCardView
.
I am changing the image on Imag
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
.
According to this post, you cannot change the background drawable, only the color.
You can try
public void setBackground (Drawable background)
-Set the background to a given Drawable, or remove the background