search

Home  >  Q&A  >  body text

android - 关于ListView内存溢出的疑问

高洛峰高洛峰2826 days ago889

reply all(5)I'll reply

  • 黄舟

    黄舟2017-04-17 14:59:21

    It is indeed possible if you keep loading, but it is difficult for human operations to reach the point where it overflows. When there is a lot of data, the operation will start to get stuck. At that time, it will be harder for you to scroll down and continue loading. Also, maybe someone has limited the function, loading up to 1,000 items, and 1,000 items is enough for you to play.

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 14:59:21

    Calling list.clear(); method after each slide can release memory

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 14:59:21

    Generally speaking, if it is simple text information, user information, ID, etc., it is more difficult to have memory overflow problems, unless you slide for a long, long, long, long time.
    The key is the image. Bitmap uses a loader to control the memory and automatically recycle it. This is the main cause of OOM.

    reply
    0
  • 阿神

    阿神2017-04-17 14:59:21

    By the way, the Android version of Sina Weibo is mainly packaged by the web interface

    reply
    0
  • 阿神

    阿神2017-04-17 14:59:21

    View recycling, overflow is unlikely.

    reply
    0
  • Cancelreply