i want make cardview totally transparent in browse fragment .but problem default shadow type effect coming.i have tried not going away.anyway can removed.
customimagecardview cardview = new customimagecardview(mcontext); cardview.setfocusable(true); cardview.setfocusableintouchmode(true); cardview.setelevation(0); cardview.setbackgroundcolor(contextcompat.getcolor(mcontext , r.color.transperent_color)); cardview.invalidate();
cardview has default elevation why shadow displaying. override using cardelevation
property.
app:cardelevation="0dp"
Comments
Post a Comment