Commit d989110c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Update to Sliding Menu API

parent 624a5a2d
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment