You have to use Picasso.
it's easy to use
downlod latest jar from http://square.github.io/picasso/
simply load image used below code
Picasso.with(context)
.load(url)
.placeholder(R.drawable.placeholder)
.resize(imgWidth, imgHeight)
.centerCrop()
.into(image);
You have to use Picasso.
it's easy to use
downlod latest jar from http://square.github.io/picasso/
simply load image used below code
Picasso.with(context)
.load(url)
.placeholder(R.drawable.placeholder)
.resize(imgWidth, imgHeight)
.centerCrop()
.into(image);
发布评论
评论(4)
这是如何:
图像的延迟加载在ListView中
查看第二个答案中的演示,对我帮助很大!
This is how:
Lazy load of images in ListView
Check the demo in the second answer, helped me massively!
试试这个代码。通用图像加载器。
Try this code.the universal imageloader.
尝试使用本教程 Android:帮助适应带有 ImageLoader 类的 ListView 适配器(LazyList)
希望对您有帮助!
Try to use this tutorial Android: Help in adapting ListView adapter with an ImageLoader Class (LazyList)
Hope, it's helps you!.