[Android] Update to Sliding Menu API

Jean-Baptiste Kempf git at videolan.org
Thu Sep 27 18:31:46 CEST 2012


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Sep 27 18:31:31 2012 +0200| [d989110c7c0ce196a3fd63bc15e555a42b850cfc] | committer: Jean-Baptiste Kempf

Update to Sliding Menu API

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

 vlc-android/src/org/videolan/vlc/gui/MainActivity.java |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index fe63123..d6ca5d9 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -124,13 +124,13 @@ public class MainActivity extends SherlockFragmentActivity {
         updateMenuOffset();
 
         View v_main = LayoutInflater.from(this).inflate(R.layout.main, null);
-        mMenu.setViewAbove(v_main);
+        mMenu.setContent(v_main);
         View sidebar = LayoutInflater.from(this).inflate(R.layout.sidebar, null);
         ((ListView)sidebar).setFooterDividersEnabled(true);
         final ListView listView = (ListView)sidebar.findViewById(android.R.id.list);
         mSidebarAdapter = new SidebarAdapter(getSupportFragmentManager());
         listView.setAdapter(mSidebarAdapter);
-        mMenu.setViewBehind(sidebar);
+        mMenu.setMenu(sidebar);
 
         /* Get the current version from package */
         PackageInfo pinfo = null;
@@ -184,7 +184,7 @@ public class MainActivity extends SherlockFragmentActivity {
         /* Add padding between the home button and the arrow */
         ImageView home = (ImageView)findViewById(Util.isHoneycombOrLater()
                 ? android.R.id.home : R.id.abs__home);
-        if (home != null) 
+        if (home != null)
             home.setPadding(20, 0, 0, 0);
 
         /* Set up the sidebar click listener */



More information about the Android mailing list