[Android] UI: fix white border on video items

Sébastien Toque git at videolan.org
Wed Mar 11 21:56:53 CET 2015


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Wed Mar 11 21:56:20 2015 +0100| [9b5c2da5cdeacaa9b722654e89f484f136bbb2cd] | committer: Sébastien Toque

UI: fix white border on video items

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=9b5c2da5cdeacaa9b722654e89f484f136bbb2cd
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
index 043821b..e65da64 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
@@ -36,6 +36,7 @@ import android.content.Context;
 import android.content.res.ColorStateList;
 import android.graphics.Bitmap;
 import android.support.annotation.Nullable;
+import android.support.v7.widget.CardView;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.View.OnClickListener;
@@ -148,6 +149,7 @@ public class VideoListAdapter extends ArrayAdapter<MediaWrapper>
                 v = inflater.inflate(R.layout.video_grid_card, parent, false);
             else
                 v = inflater.inflate(R.layout.video_list_card, parent, false);
+            ((CardView)v).setPreventCornerOverlap(false);
 
             holder = new ViewHolder();
             holder.thumbnail = (ImageView) v.findViewById(R.id.ml_item_thumbnail);



More information about the Android mailing list