[Android] Adjust TV background and margins

Geoffrey Métais git at videolan.org
Wed Nov 23 18:11:33 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Nov 23 16:58:45 2016 +0100| [d828ff3bbe459e4f75de1e87ddd2e97ae3029b51] | committer: Geoffrey Métais

Adjust TV background and margins

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

 vlc-android/res/layout/tv_audio_player.xml                           | 5 +----
 vlc-android/res/layout/tv_main.xml                                   | 2 +-
 vlc-android/res/layout/tv_vertical_grid.xml                          | 2 +-
 vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java          | 2 +-
 .../src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.java    | 3 +--
 5 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/vlc-android/res/layout/tv_audio_player.xml b/vlc-android/res/layout/tv_audio_player.xml
index 70d1185..7a37224 100644
--- a/vlc-android/res/layout/tv_audio_player.xml
+++ b/vlc-android/res/layout/tv_audio_player.xml
@@ -2,10 +2,7 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     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:layout_marginTop="@dimen/tv_overscan_vertical"
+    android:layout_margin="10dp"
     android:orientation="horizontal">
 
     <!-- Cover & HUD -->
diff --git a/vlc-android/res/layout/tv_main.xml b/vlc-android/res/layout/tv_main.xml
index dff43fa..6119131 100644
--- a/vlc-android/res/layout/tv_main.xml
+++ b/vlc-android/res/layout/tv_main.xml
@@ -2,7 +2,7 @@
 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
-        android:background="@color/material_blue_grey_800">
+        android:background="@color/grey850">
     <fragment
           android:name="android.support.v17.leanback.app.BrowseFragment"
           android:id="@+id/browse_fragment"
diff --git a/vlc-android/res/layout/tv_vertical_grid.xml b/vlc-android/res/layout/tv_vertical_grid.xml
index 3ae8d4a..0072925 100644
--- a/vlc-android/res/layout/tv_vertical_grid.xml
+++ b/vlc-android/res/layout/tv_vertical_grid.xml
@@ -1,7 +1,7 @@
 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
-        android:background="@color/material_blue_grey_800">
+        android:background="@color/grey850">
     <FrameLayout
         android:id="@+id/tv_fragment_placeholder"
         android:layout_width="match_parent"
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java b/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
index ef341ab..7183699 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * MainTvActivity.java
  *****************************************************************************
- * Copyright © 2014-2015 VLC authors, VideoLAN and VideoLabs
+ * Copyright © 2014-2016 VLC authors, VideoLAN and VideoLabs
  * Author: Geoffrey Métais
  *
  * This program is free software; you can redistribute it and/or modify
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.java b/vlc-android/src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.java
index 38db2c0..b4842a3 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.java
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * VerticalGridActivity.java
  *****************************************************************************
- * Copyright © 2014-2015 VLC authors, VideoLAN and VideoLabs
+ * Copyright © 2014-2016 VLC authors, VideoLAN and VideoLabs
  * Author: Geoffrey Métais
  *
  * This program is free software; you can redistribute it and/or modify
@@ -51,7 +51,6 @@ public class VerticalGridActivity extends BaseTvActivity implements BrowserActiv
         setContentView(R.layout.tv_vertical_grid);
         mContentLoadingProgressBar = (ProgressBar) findViewById(R.id.tv_fragment_progress);
         mEmptyView = (TextView) findViewById(R.id.tv_fragment_empty);
-        getWindow().setBackgroundDrawableResource(R.drawable.background);
         long type = getIntent().getLongExtra(MainTvActivity.BROWSER_TYPE, -1);
         if (type == MainTvActivity.HEADER_VIDEO)
             mFragment = new VideoBrowserFragment();



More information about the Android mailing list