Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
将图像从 Web 加载到 ListView 的最佳实践是什么?
我必须先将它们加载到 SQLite 数据库中还是应该将它们直接加载到 ListView 中?
而且在单击 ListView 中的项目后,我必须在另一个活动中显示相同的图像。将这个图像传递给另一个活动是否是正确的方法,或者最好再次从 Web / SQLite 加载它?
看这里延迟加载图像
将它们直接加载到列表视图中会使滚动速度变慢,因为每次它们可见时都会重新加载它们。
这样做谷歌推荐http://developer.android.com/training/displaying-bitmaps/index.html