Skip to content

Instantly share code, notes, and snippets.

@crossphd
Created February 21, 2018 16:14
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 crossphd/e8dae4960e9789e9559a98c432fda1e1 to your computer and use it in GitHub Desktop.
Save crossphd/e8dae4960e9789e9559a98c432fda1e1 to your computer and use it in GitHub Desktop.
Article currentArticle = getItem(position);
ImageView image = listItemView.findViewById(R.id.article_image);
if (currentArticle != null) {
Picasso.with(this.getContext())
.load(currentArticle.getmImageUrl())
.centerCrop()
.transform(new CircleTransform(50,0))
.fit()
.into(image);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment