Skip to content

Commit

Permalink
fix(Glide): use fitCenter when loading images
Browse files Browse the repository at this point in the history
  • Loading branch information
PLNech committed Jan 12, 2017
1 parent eedbc38 commit 36f3c23
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
placeholder = imageView.getDrawable();
placeholders.put(viewId, placeholder);
}
Glide.with(activity).load(attributeValue).placeholder(placeholder).into(imageView);
Glide.with(activity).load(attributeValue).fitCenter().placeholder(placeholder).into(imageView);
} else {
throw new IllegalStateException(String.format(Errors.ADAPTER_UNKNOWN_VIEW, view.getClass().getCanonicalName()));
}
Expand Down

0 comments on commit 36f3c23

Please sign in to comment.