[Android] Use embedded color resource instead of system one

Geoffrey Métais git at videolan.org
Tue Jul 5 16:04:53 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jul  5 15:55:18 2016 +0200| [6482d12ef07a28581777718d394dcff314ff63f8] | committer: Geoffrey Métais

Use embedded color resource instead of system one

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

 vlc-android/res/layout-land/media_info.xml |  1 -
 vlc-android/res/layout/media_info.xml      |  1 -
 vlc-android/res/layout/player_hud.xml      |  1 -
 vlc-android/res/values-v21/styles.xml      |  2 +-
 vlc-android/res/values/styles.xml          | 10 +++++-----
 5 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/vlc-android/res/layout-land/media_info.xml b/vlc-android/res/layout-land/media_info.xml
index bdad61c..97b00a0 100644
--- a/vlc-android/res/layout-land/media_info.xml
+++ b/vlc-android/res/layout-land/media_info.xml
@@ -105,7 +105,6 @@
             android:clipToPadding="false"
             android:divider="#00000000"
             android:fastScrollEnabled="true"
-            android:listSelector="@android:color/transparent"
             android:paddingBottom="@dimen/listview_bottom_padding" />
     </LinearLayout>
 
diff --git a/vlc-android/res/layout/media_info.xml b/vlc-android/res/layout/media_info.xml
index d442b98..cb6b9d6 100644
--- a/vlc-android/res/layout/media_info.xml
+++ b/vlc-android/res/layout/media_info.xml
@@ -96,7 +96,6 @@
             android:clipToPadding="false"
             android:divider="#00000000"
             android:fastScrollEnabled="true"
-            android:listSelector="@android:color/transparent"
             android:paddingBottom="@dimen/listview_bottom_padding" />
 
     </LinearLayout>
diff --git a/vlc-android/res/layout/player_hud.xml b/vlc-android/res/layout/player_hud.xml
index 0037f48..0d53f55 100644
--- a/vlc-android/res/layout/player_hud.xml
+++ b/vlc-android/res/layout/player_hud.xml
@@ -37,7 +37,6 @@
         android:layout_alignParentLeft="true"
         android:layout_marginLeft="@dimen/time_margin_sides"
         android:gravity="left"
-        android:text="--:--"
         android:textAppearance="@style/TextAppearance.AppCompat.SearchResult.Title"
         android:textColor="@color/orange500"
         android:textSize="16sp"/>
diff --git a/vlc-android/res/values-v21/styles.xml b/vlc-android/res/values-v21/styles.xml
index c26e305..6b15b14 100644
--- a/vlc-android/res/values-v21/styles.xml
+++ b/vlc-android/res/values-v21/styles.xml
@@ -14,7 +14,7 @@
     <style name="Theme.VLC.Player.21" parent="Theme.VLC.Player.19">
         <item name="android:windowTranslucentStatus">false</item>">
         <item name="android:windowTranslucentNavigation">false</item>
-        <item name="android:navigationBarColor">@android:color/transparent</item>
+        <item name="android:navigationBarColor">@color/transparent</item>
     </style>
 
     <style name="PopupMenuStyle.Light" parent="@style/Widget.AppCompat.Light.PopupMenu">
diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index a03561a..0aa73d0 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -107,7 +107,7 @@
         <item name="preferenceTheme">@style/VLCPreferenceTheme.Dark</item>
 
         <item name="colorPrimary">@color/orange800</item>
-        <item name="colorPrimaryDark">@android:color/transparent</item>
+        <item name="colorPrimaryDark">@color/transparent</item>
         <item name="colorAccent">@color/orange600</item>
         <item name="item_footer">@color/grey700</item>
         <item name="background_default">@color/grey850</item>
@@ -174,7 +174,7 @@
 
     <style name="Theme.VLC.List" parent="android:style/Widget.AbsListView">
         <item name="android:listSelector">@drawable/background_item</item>
-        <item name="android:divider">@android:color/transparent</item>
+        <item name="android:divider">@color/transparent</item>
         <item name="android:dividerHeight">0dp</item>
     </style>
 
@@ -195,11 +195,11 @@
         <item name="android:windowFullscreen">true</item>
         <item name="android:windowBackground">@color/black</item>
         <item name="windowActionBarOverlay">true</item>
-        <item name="video_player_overlay">@android:color/transparent</item>
-        <item name="status_bar_overlay">@android:color/transparent</item>
+        <item name="video_player_overlay">@color/transparent</item>
+        <item name="status_bar_overlay">@color/transparent</item>
 
         <item name="colorPrimary">@color/orange800</item>
-        <item name="colorPrimaryDark">@android:color/transparent</item>
+        <item name="colorPrimaryDark">@color/transparent</item>
         <item name="colorAccent">@color/orange800</item>
 
         <item name="rounded_bg">@drawable/rounded_corners</item>



More information about the Android mailing list