Skip to content

Instantly share code, notes, and snippets.

@mplacona
Last active September 17, 2016 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mplacona/e6f450b5544b1c9598116e69abebbfcd to your computer and use it in GitHub Desktop.
Save mplacona/e6f450b5544b1c9598116e69abebbfcd to your computer and use it in GitHub Desktop.
Picasso.with(mContext).invalidate(file);
Picasso.with(mContext)
.load(ICON_URL)
.memoryPolicy(MemoryPolicy.NO_CACHE, MemoryPolicy.NO_STORE)
.networkPolicy(NetworkPolicy.NO_CACHE, NetworkPolicy.NO_STORE)
.placeholder(R.mipmap.ic_launcher)
.error(R.mipmap.error)
.into(viewHolder.mIcon);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment