[Android] TV: Center crop images on cards
Geoffrey Métais
git at videolan.org
Tue Aug 29 12:15:22 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Aug 28 17:03:38 2017 +0200| [c94b6fba6a4573952dca8a1ab1bc27697544480a] | committer: Geoffrey Métais
TV: Center crop images on cards
> https://code.videolan.org/videolan/vlc-android/commit/c94b6fba6a4573952dca8a1ab1bc27697544480a
---
vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java b/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java
index cb470521e..18aaf2405 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java
@@ -76,7 +76,7 @@ public class CardPresenter extends Presenter {
public ViewHolder(View view) {
super(view);
mCardView = (ImageCardView) view;
- mCardView.getMainImageView().setScaleType(ImageView.ScaleType.FIT_CENTER);
+ mCardView.getMainImageView().setScaleType(ImageView.ScaleType.CENTER_CROP);
}
void updateCardViewImage(MediaLibraryItem mediaLibraryItem) {
More information about the Android
mailing list