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