Why my drawShadow‘s rendering is so poor?
# compose
c
Why my drawShadow‘s rendering is so poor?
m
Try to add a background to your composable
a
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
thx,I'm a newbie on compose, and just practice follow the video steps. 😂