Android Out of Memory error with Lazy Load images

后端 未结 5 1235
挽巷
挽巷 2020-12-05 22:17

I found Fedor\'s code here and implemented it into my project. The only difference is that my application does not have a list view, rather, I am accessing 1 image at a time

5条回答
  •  青春惊慌失措
    2020-12-05 22:48

    i face the same problem and i use the SoftReference for the bitmap and the url but it seems that the Dalvik VM reclaim SoftReference very quickly and my ListView images keep flickering then i tried inPurgeable= true and i get over OutOfMemoryException and my listview images didn't flicker.

提交回复
热议问题