2

I'm trying to implement neumorphic cards on Android using elevation attribute and new outlineSpotShadowColor attribute.

This is what I got so far:

enter image description here

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:

enter image description here

As you can see the second card has different shadow colour on different sides.

How to do this on Android?

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Pavlo Zin
  • 762
  • 6
  • 25

1 Answers1

0

For Best effect of neumorphism use this github Library: fornewid/neumorphism

For more Reference you can visit medium link: Medium Blog

Nimesh Patel
  • 1,394
  • 13
  • 26