Thread
#compose
    CodeIdeal

    CodeIdeal

    2 years ago
    Why my drawShadow‘s rendering is so poor?
    manueldidonna

    manueldidonna

    2 years ago
    Try to add a background to your composable
    Andrey Kulikov

    Andrey Kulikov

    2 years ago
    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
    CodeIdeal

    CodeIdeal

    2 years ago
    thx,I'm a newbie on compose, and just practice follow the video steps. 😂