https://kotlinlang.org logo
#compose
Title
# compose
c

CodeIdeal

07/16/2020, 3:45 PM
Why my drawShadow‘s rendering is so poor?
m

manueldidonna

07/16/2020, 3:51 PM
Try to add a background to your composable
a

Andrey Kulikov

07/16/2020, 3:57 PM
there is an optimization in the android system that draws shadows like this when the alpha is 1f. probably of you will write
drawShadow(..., opacity = 0.99f)
it will look like in the preview. but this shadow what you really want? usually you have a background and a shadow on the sides of it's background, like with Buttons for example
c

CodeIdeal

07/16/2020, 4:16 PM
thx,I'm a newbie on compose, and just practice follow the video steps. 😂