Created
February 21, 2018 16:14
-
-
Save crossphd/e8dae4960e9789e9559a98c432fda1e1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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