ExpandableCardView icon indicating copy to clipboard operation
ExpandableCardView copied to clipboard

Card does not appear to be elevated as on the demo

Open fgomez98 opened this issue 6 years ago • 3 comments

screen shot 2018-11-14 at 12 11 06

fgomez98 avatar Nov 14 '18 15:11 fgomez98

Same here. Have you solved the problem?

joseRelvasF3m avatar Jan 22 '19 15:01 joseRelvasF3m

My solution was to add a standard CardView and nest the ExpandableCardView inside of it. That way you control the CardElevation of CardView and it seems to work perfectly.

agirdzius avatar Feb 20 '19 11:02 agirdzius

Hello,

The issue is that the parent in which you added the expandable cardview is clipping the elevation of the card. In fact in the image you provided you can see that there is a bit of Shadow on the edges of the card.

To fix this problem you need to address the attributes android:clipChildren=false and android:clipToPadding=false on the parent view.

Regards,

Alessandro

AleSpero avatar Feb 20 '19 15:02 AleSpero