[Android] Gradient in ImageView instead of overlaying view

Geoffrey Métais git at videolan.org
Tue Nov 8 14:04:48 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Nov  8 14:03:42 2016 +0100| [5cdb772eeb5efbb5f7a099c538c9153f476a33ff] | committer: Geoffrey Métais

Gradient in ImageView instead of overlaying view

> https://code.videolan.org/videolan/vlc-android/commit/5cdb772eeb5efbb5f7a099c538c9153f476a33ff
---

 vlc-android/res/layout/video_grid_card.xml | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/vlc-android/res/layout/video_grid_card.xml b/vlc-android/res/layout/video_grid_card.xml
index 050b561..07909a0 100644
--- a/vlc-android/res/layout/video_grid_card.xml
+++ b/vlc-android/res/layout/video_grid_card.xml
@@ -57,12 +57,8 @@
                 android:scaleType="centerCrop"
                 vlc:media="@{media}"
                 vlc:binding="@{holder.binding}"
-                android:src="@{cover}"
-                android:background="?attr/background_default_darker" />
-            <View
-                android:layout_width="match_parent"
-                android:layout_height="match_parent"
-                android:background="@drawable/black_gradient" />
+                android:src="@drawable/black_gradient"
+                android:background="@{cover}" />
 
             <LinearLayout
                 android:layout_width="match_parent"



More information about the Android mailing list