[Android] Set TV cards back to original size

Geoffrey Métais git at videolan.org
Tue Jan 26 14:35:52 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jan 26 14:27:13 2016 +0100| [30c556de5a638eb5e9fd1eaf5af24eac925b5047] | committer: Geoffrey Métais

Set TV cards back to original size

> https://code.videolan.org/videolan/vlc-android/commit/30c556de5a638eb5e9fd1eaf5af24eac925b5047
---

 vlc-android/res/values/dimens.xml                          | 2 ++
 vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/vlc-android/res/values/dimens.xml b/vlc-android/res/values/dimens.xml
index 1d31e71..2f7a592 100644
--- a/vlc-android/res/values/dimens.xml
+++ b/vlc-android/res/values/dimens.xml
@@ -9,6 +9,8 @@
     <dimen name="grid_card_height">160dp</dimen>
     <dimen name="grid_card_thumb_width">160dp</dimen>
     <dimen name="grid_card_thumb_height">100dp</dimen>
+    <dimen name="tv_grid_card_thumb_width">192dp</dimen>
+    <dimen name="tv_grid_card_thumb_height">108dp</dimen>
     <dimen name="grid_card_title_text_size">12sp</dimen>
     <dimen name="grid_card_subtitle_text_size">10sp</dimen>
     <dimen name="grid_card_vertical_spacing">0dp</dimen>
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 7d693ba..7c38634 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java
@@ -56,8 +56,8 @@ public class CardPresenter extends Presenter {
         sContext = context;
         mRes = sContext.getResources();
         sDefaultCardImage = mRes.getDrawable(R.drawable.background_cone);
-        CARD_WIDTH = mRes.getDimensionPixelSize(R.dimen.grid_card_thumb_width);
-        CARD_HEIGHT = mRes.getDimensionPixelSize(R.dimen.grid_card_thumb_height);
+        CARD_WIDTH = mRes.getDimensionPixelSize(R.dimen.tv_grid_card_thumb_width);
+        CARD_HEIGHT = mRes.getDimensionPixelSize(R.dimen.tv_grid_card_thumb_height);
     }
 
     static class ViewHolder extends Presenter.ViewHolder {



More information about the Android mailing list