Is it possible to provide a reflection property to...
# compose
s
Is it possible to provide a reflection property to a card or an image composable?
j
Same image, flipped vertically, crop it and apply a opacity + vertical gradient with the background color
n
you can always hack something by rendering two Image (one reversed), but a real reflection would require some GPU works probably by this API https://android-developers.googleblog.com/2021/04/android-gpu-compute-going-forward.html but I'll look into what other's answer
j
I would like to see an approach without indicating the gradient background color 🤔
s
Hmm. Guess it is vulkun moving forward then. Will try out these solutions. Thanks lads @Javier @nitrog42
n
good luck