Drawable advantage over bitmap for memory in android

后端 未结 3 1069
你的背包
你的背包 2020-12-31 10:42

This question is linked with the answers in the following question:

Error removing Bitmaps[Android]

Is there any advantage of using Drawable over Bitmap in A

3条回答
  •  青春惊慌失措
    2020-12-31 11:18

    Acc. to this page, starting from API Level 11, the Bitmap pixel data is stored in the Dalvik Heap along with the associated Bitmap. Thus calling .recycle is actually not required, unless you want to reclaim the memory manually for further use. Be sure to de-reference the bitmap too, just as an added measure.

    PS: This was the link which explains hackbod's answer.

提交回复
热议问题