Home > Software design >  Blurr border of component in Kotlin
Blurr border of component in Kotlin

Time:12-01

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...

CodePudding user response:

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

CodePudding user response:

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.

  • Related