Out Of Memory Error When loading more images in Glide

前端 未结 11 1004
我寻月下人不归
我寻月下人不归 2020-12-31 06:32

Edited:

  • In my application, I am loading more than 300 images in home page. I used glide to load images. I\'m getting Out of
11条回答
  •  醉酒成梦
    2020-12-31 06:56

    • I solved this issue by removing nested scroll view placed above recyclerview. Why OutOfMemory error occurred means, when loading more than 200 images in home page, it is loading all 200 images because of using nested scroll view above recyclerview.

    • So I can't check the logcat image view width and height one by one in adapter.

    • After removed nested scroll view fixed out of memory error.because it will load only 3 images displayed in device when coming to home activity.

    • Also check this, how to use scroll instead of nested scroll view.

提交回复
热议问题