[Android] Add margin for overscan on TV app

Geoffrey Métais git at videolan.org
Thu Jan 15 15:20:52 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jan 15 14:36:41 2015 +0100| [05f5ac5fe29f7d2c876b4cbbc18639aef995fed0] | committer: Geoffrey Métais

Add margin for overscan on TV app

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

 vlc-android/res/layout-v17/player_action_bar.xml |    1 +
 vlc-android/res/layout/player.xml                |    3 +++
 vlc-android/res/values/dimens.xml                |    2 ++
 vlc-android/tv/res/values/dimens.xml             |    2 ++
 4 files changed, 8 insertions(+)

diff --git a/vlc-android/res/layout-v17/player_action_bar.xml b/vlc-android/res/layout-v17/player_action_bar.xml
index ea731f6..423acfa 100644
--- a/vlc-android/res/layout-v17/player_action_bar.xml
+++ b/vlc-android/res/layout-v17/player_action_bar.xml
@@ -8,6 +8,7 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:gravity="center_horizontal"
+        android:layout_marginTop="@dimen/tv_overscan_vertical"
         android:layout_gravity="top"
         android:background="?attr/status_bar_overlay"
         android:text="@string/title"
diff --git a/vlc-android/res/layout/player.xml b/vlc-android/res/layout/player.xml
index 2450900..c3a39b9 100644
--- a/vlc-android/res/layout/player.xml
+++ b/vlc-android/res/layout/player.xml
@@ -35,6 +35,9 @@
     <RelativeLayout
         android:layout_width="match_parent"
         android:layout_height="match_parent"
+        android:layout_marginBottom="@dimen/tv_overscan_vertical"
+        android:layout_marginLeft="@dimen/tv_overscan_horizontal"
+        android:layout_marginRight="@dimen/tv_overscan_horizontal"
         android:fitsSystemWindows="true" >
 
         <include
diff --git a/vlc-android/res/values/dimens.xml b/vlc-android/res/values/dimens.xml
index c18ca01..b377b69 100644
--- a/vlc-android/res/values/dimens.xml
+++ b/vlc-android/res/values/dimens.xml
@@ -24,4 +24,6 @@
 
 
     <dimen name="media_ctrl_margin_top">20dp</dimen>
+    <dimen name="tv_overscan_vertical">0dp</dimen>
+    <dimen name="tv_overscan_horizontal">0dp</dimen>
 </resources>
\ No newline at end of file
diff --git a/vlc-android/tv/res/values/dimens.xml b/vlc-android/tv/res/values/dimens.xml
index 5c07160..52648f7 100644
--- a/vlc-android/tv/res/values/dimens.xml
+++ b/vlc-android/tv/res/values/dimens.xml
@@ -1,4 +1,6 @@
 <resources>
     <dimen name="tv_card_width">192dp</dimen>
     <dimen name="tv_card_height">108dp</dimen>
+    <dimen name="tv_overscan_vertical">27dp</dimen>
+    <dimen name="tv_overscan_horizontal">48dp</dimen>
 </resources>
\ No newline at end of file



More information about the Android mailing list