How to prevent Android's drawBitmap from only drawing black images?

前端 未结 2 935
Happy的楠姐
Happy的楠姐 2020-12-12 16:44

As per the original question, The end result is a rounded-rect png in an ImageView with a natural looking drop shadow.

I have the shadow wo

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-12 17:31

    You have to draw both the shadow image and the original image. The shadow image only contains the alpha values of the original image, not the actual colored pixels.

提交回复
热议问题