[Android] Relocate the sliding menu color in the layout

Ludovic Fauvet git at videolan.org
Fri Aug 17 19:54:12 CEST 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Fri Aug 17 19:52:29 2012 +0200| [ad62687600d58523e8e29aa5a6effc7884fa3823] | committer: Ludovic Fauvet

Relocate the sliding menu color in the layout

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

 vlc-android/res/layout/sidebar.xml                     |    4 ++--
 vlc-android/src/org/videolan/vlc/gui/MainActivity.java |    1 -
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/vlc-android/res/layout/sidebar.xml b/vlc-android/res/layout/sidebar.xml
index be31521..cbcba33 100644
--- a/vlc-android/res/layout/sidebar.xml
+++ b/vlc-android/res/layout/sidebar.xml
@@ -4,7 +4,7 @@
     android:layout_height="match_parent"
     android:divider="@color/item_common"
     android:dividerHeight="1dp"
-    android:background="@android:color/black"
-    android:layout_width="208dp">
+    android:layout_width="208dp"
+    android:background="#424242">
 
 </ListView>
diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index f224b8b..c3b430a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -130,7 +130,6 @@ public class MainActivity extends SherlockFragmentActivity {
         final ListView listView = (ListView)sidebar.findViewById(android.R.id.list);
         mSidebarAdapter = new SidebarAdapter(getSupportFragmentManager());
         listView.setAdapter(mSidebarAdapter);
-        listView.setBackgroundColor(Color.parseColor("#424242"));
         mMenu.setViewBehind(sidebar);
 
         /* Get settings */



More information about the Android mailing list