[Android] Fix video gridview thumbnail size
Alexandre Perraud
git at videolan.org
Thu Nov 24 14:16:09 CET 2016
vlc-android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Thu Nov 24 13:59:09 2016 +0100| [526c7ee3b4823d49a1c8e348550ec81cd971483f] | committer: Alexandre Perraud
Fix video gridview thumbnail size
> https://code.videolan.org/videolan/vlc-android/commit/526c7ee3b4823d49a1c8e348550ec81cd971483f
---
vlc-android/res/layout/video_grid_card.xml | 7 ++++---
vlc-android/res/values/dimens.xml | 3 +++
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/vlc-android/res/layout/video_grid_card.xml b/vlc-android/res/layout/video_grid_card.xml
index 17c2887..8476fbf 100644
--- a/vlc-android/res/layout/video_grid_card.xml
+++ b/vlc-android/res/layout/video_grid_card.xml
@@ -46,13 +46,14 @@
android:id="@+id/video_grid_item_layout"
android:layout_width="@dimen/grid_card_thumb_width"
android:layout_height="@dimen/grid_card_thumb_height"
- android:layout_marginBottom="@dimen/default_margin"
android:clickable="true"
android:focusable="true"
android:longClickable="true"
android:onClick="@{(view) -> holder.onClick(view, media)}"
- android:paddingLeft="@dimen/half_default_margin"
- android:paddingRight="@dimen/half_default_margin">
+ android:paddingLeft="@dimen/left_right_1610_margin"
+ android:paddingRight="@dimen/left_right_1610_margin"
+ android:paddingBottom="@dimen/top_bottom_1610_margin"
+ android:paddingTop="@dimen/top_bottom_1610_margin">
<!-- Image loading is handled by org.videolan.vlc.gui.helpers.AsyncImageLoader.loadPicture() -->
<ImageView
android:id="@+id/ml_item_thumbnail"
diff --git a/vlc-android/res/values/dimens.xml b/vlc-android/res/values/dimens.xml
index 0e9261e..d052491 100644
--- a/vlc-android/res/values/dimens.xml
+++ b/vlc-android/res/values/dimens.xml
@@ -51,6 +51,9 @@
<dimen name="default_margin">8dp</dimen>
<dimen name="half_default_margin">4dp</dimen>
<dimen name="very_small_margin">4dp</dimen>
+ <dimen name="left_right_1610_margin">8dp</dimen>
+ <dimen name="top_bottom_1610_margin">5dp</dimen>
+
<dimen name="actionBarSize">56dp</dimen>
<dimen name="info_dialog_peek_height">120dip</dimen>
<dimen name="player_peek_height">62dip</dimen>
More information about the Android
mailing list