I'm trying to implement neumorphic cards on Android using elevation
attribute and new outlineSpotShadowColor
attribute.
This is what I got so far:
XML code:
android:elevation="35dp"
android:outlineSpotShadowColor="#9677d8"
Background shape:
<shape android:shape="rectangle">
<solid android:color="#b18cfe" />
<corners android:radius="30dp" />
</shape>
And this is what I'm trying to achieve:
As you can see the second card has different shadow colour on different sides.
How to do this on Android?