UIL loading exact image

喜你入骨 提交于 2019-12-06 16:48:56

Use should use a view holder for performance.

http://developer.android.com/training/improving-layouts/smooth-scrolling.html

Your code might call findViewById() frequently during the scrolling of ListView, which can slow down performance. Even when the Adapter returns an inflated view for recycling, you still need to look up the elements and update them. A way around repeated use of findViewById() is to use the "view holder" design pattern.

http://www.youtube.com/watch?v=wDBM6wVEO70. The topic is abot listview and view holder.

SokectTimeOut Exception is thrown when a timeout expired on a socket read or accept operation.

    ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(a.getApplicationContext())
    .enableLogging()
    .build();
    .imageDownloader(new URLConnectionImageDownloader(5 * 1000, 20 * 1000)) // connectTimeout (5 s), readTimeout (20 s)

For EOFException check the link.

http://code.google.com/p/libs-for-android/issues/detail?id=14.

  System.setProperty("http.keepAlive", "false"). 

Issue similar was raised and some suggested to try the above before opening HTTP url connection.

Probably has nothing to do with your code.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!