I Have bad performance on using shadow effect

后端 未结 4 1718
时光取名叫无心
时光取名叫无心 2021-02-08 12:33

I put some image views on scroll view. And when I drag this scroll view, I didn\'t have any problems.

But after I applied shadow effect to these image views, dragging th

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-08 13:24

    I've had exactly the same problem. Drawing the shadow is a fairly costly multi-pass operation, so I can kind of understand it and I think the shadow is drawn continuously as you scroll. The only work-around I've found is to render the shadow manually into an image and display that image behind the images in the scroll. This seems to work well.

提交回复
热议问题