Use cache when ImageView loads images to avoid conflicts with preload
This commit is contained in:
@@ -153,7 +153,7 @@ class PostAdapter(val context: Context, private var postYandList: ArrayList<Post
|
||||
}
|
||||
|
||||
holder.picImage.layoutParams.height = postYandList[position].sample_height
|
||||
Glide.with(context).load(source).into(holder.picImage)
|
||||
Glide.with(context).load(source).onlyRetrieveFromCache(true).into(holder.picImage)
|
||||
if (position == postYandList.size - 1 && postYandList.size > 6) {
|
||||
//到达底部
|
||||
mLoadMoreListener.loadMore(position)
|
||||
|
||||
Reference in New Issue
Block a user