0

I need to reproduce this.

I've made the code for the blue rectangle so far but I can't find a way to add that white blurr around the rectangle.

Does anyone know how to do it?

It's easy in all languages except Kotlin...

  • It would not be a feature of the programming language, but of whatever platform you are working with. – Tenfour04 Nov 28 '21 at 16:05
  • Does this answer your question? [How to add a blurred drop shadow to a button?](https://stackoverflow.com/questions/47674828/how-to-add-a-blurred-drop-shadow-to-a-button) – Phil Dukhov Nov 29 '21 at 02:51
  • Thank you @PhilipDukhov, it is indeed the answer I was looking for. – Santangelo Nov 30 '21 at 23:57

2 Answers2

1

You need to make use of third party libraries. Such designs patterns are called neumorphisms . These can be achieved easily using these library :

  1. Fornewid-Neumorphism

https://github.com/fornewid/neumorphism

  1. Synth-CRED

https://github.com/CRED-CLUB/synth-android

Karunesh Palekar
  • 2,190
  • 1
  • 9
  • 18
0

Thank you all for your answers. I've finally found Jetpack Compose (don't know why I didn't see it sooner) and I will be using that going forward. It seems to be the better way of building an app's UI in Kotlin.

Peter Csala
  • 17,736
  • 16
  • 35
  • 75