Es posible reemplazar el menu "SlidingMenu" con un Activity
con otras opciones, tengo lo siguiente:
Voy a tener una opcion mas que diga configuracion: En esta deseo mostrar varios opciones pero no necesito que me llene el Fragment
de fondo, que todo se trabaje en el menu. Que termino como esto:
¿Mi dificultad es como llamar, que llamar, un Activity
, un Fragment
y como colocarlo encima del Menu?
if (oFragment != null) {
FragmentManager fragmentManager = getFragmentManager();
fragmentManager.beginTransaction()
.replace(R.id.frame_container, oFragment).commit();
//update selected item and title, then close the drawer
oDrawerList.setItemChecked(position, true);
oDrawerList.setSelection(position);
setTitle(navMenuTitles[position - 1]);
oDrawerLayout.closeDrawer(oDrawerList);
} else {
// error in creating fragment
Log.e("MainActivity", "Error al crear el Fragment");
Log.i("Fin", "XXXXXXXXXXXXXXX");
String Variable;
Variable = "";
Toast.makeText(getApplicationContext(),
"Cerrando sesión !!", Toast.LENGTH_LONG)
.show();
Log.i("La variable", Variable);
SharedPreferences preferencias=getSharedPreferences("SESION",Context.MODE_PRIVATE);
Editor editor=preferencias.edit();
editor.putString("USUARIO", Variable.toString());
editor.putString("VEHICULO_PREDETERMINADO", Variable.toString());
editor.commit();
Log.i("Fin", Variable);
finish();
}
Pero lo que estoy intentando reemplazar es el menu mismo, sin que se esconda, como en la segunda imagen.