[Android] Fix black theme with cardviews
Geoffrey Métais
git at videolan.org
Wed Mar 18 11:52:50 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Mar 18 11:49:59 2015 +0100| [efcb5b844b10225ec9ec1309fa20caf183bb7ee5] | committer: Geoffrey Métais
Fix black theme with cardviews
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=efcb5b844b10225ec9ec1309fa20caf183bb7ee5
---
vlc-android/res/layout/mrl_item.xml | 1 +
vlc-android/res/layout/video_grid_card.xml | 1 +
vlc-android/res/layout/video_list_card.xml | 1 +
vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java | 1 -
4 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/vlc-android/res/layout/mrl_item.xml b/vlc-android/res/layout/mrl_item.xml
index 629b427..50820dd 100644
--- a/vlc-android/res/layout/mrl_item.xml
+++ b/vlc-android/res/layout/mrl_item.xml
@@ -4,6 +4,7 @@
android:layout_width="match_parent"
android:layout_height="50dp"
card_view:cardUseCompatPadding="true"
+ card_view:cardPreventCornerOverlap="false"
card_view:cardElevation="1sp">
<RelativeLayout
diff --git a/vlc-android/res/layout/video_grid_card.xml b/vlc-android/res/layout/video_grid_card.xml
index 758616b..7b6c59c 100644
--- a/vlc-android/res/layout/video_grid_card.xml
+++ b/vlc-android/res/layout/video_grid_card.xml
@@ -5,6 +5,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
card_view:cardUseCompatPadding="true"
+ card_view:cardPreventCornerOverlap="false"
card_view:cardElevation="1sp" >
<RelativeLayout
diff --git a/vlc-android/res/layout/video_list_card.xml b/vlc-android/res/layout/video_list_card.xml
index 7e718b3..33ace69 100644
--- a/vlc-android/res/layout/video_list_card.xml
+++ b/vlc-android/res/layout/video_list_card.xml
@@ -6,6 +6,7 @@
android:layout_height="wrap_content"
android:orientation="horizontal"
card_view:cardUseCompatPadding="true"
+ card_view:cardPreventCornerOverlap="false"
card_view:cardElevation="1sp" >
<RelativeLayout
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 e65da64..0bc6e83 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
@@ -149,7 +149,6 @@ 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