Android: Bitmaps, SoftReferences, and OOMs?

前端 未结 1 605
长情又很酷
长情又很酷 2020-12-15 14:04

I have a series of views in a vertical LinearLayout. Each view generates and draws a Bitmap, when scrolled to. For performance reasons, I would rather not generate the Bit

相关标签:
1条回答
  • 2020-12-15 14:39

    The problem is that Bitmaps use finalizers, therefore, it might take a couple of GC passes before the native memory is actually released. This is something we are working on making better.

    0 讨论(0)
提交回复
热议问题