Smoothing Is Not There In Android Listview Scrolling, Like Whatsapp New Chat Contact List Does
I have my listview with 1 image view and 2 text views but when I scroll it down it don't work smooth, so what should I do?? Now here is my code.. class ReceiptAdapter extends BaseA
Solution 1:
You need load Images in background, not in the main thread. For this purpose you should use a library that handle that. Best libraries for that are:
- Picasso http://square.github.io/picasso/
- Universal image download https://github.com/nostra13/Android-Universal-Image-Loader
After implement one of this libraries you should use this for loading image in background, this libraries cache images in memory and handle other options, like placeholder for error dowwload, apply animation for showing images etc.
Sorry for my bad english
Solution 2:
Or you could use Volley - this is the standard REST library from Google that is also capable of image loading. The Docs are here
Post a Comment for "Smoothing Is Not There In Android Listview Scrolling, Like Whatsapp New Chat Contact List Does"