Why is Compose's `Card` default elevation differen...
# compose
m
Why is Compose's
Card
default elevation different from
CardView
? In a mixed app, this makes the cards looks different, which looks especially bad in layouts that have both.
1
a
Because
CardView
is a legacy class which follows the old material design specs.
MaterialCardView
and
Card
in Compose follow the latest specs and should have the same default elevation.
💯 1
m
Thank you, I replaced all `CardView`s with `MaterialCardView`s and it's all consistent now.