My MainMenu is the first launched activity or page which will show the MainPage as the Fragment
in this MainMenu,
a) it has a Left Drawer. When user click on an item in the drawer, it will be displayed as fragment.
In this MainPage,
b) it has dropdown menu in Action-Bar. when user click an item in the menu
it will be displayed as fragment
The Problem:
1) User click an item in MainPage(b) :Action_bar dropdown menu, how to remove or not to show this current display fragment WHEN user click the back button and show the main page content
I tried below code, it does not work
public override void OnBackPressed()
{
if (DrawerLayout != null && DrawerLayout.IsDrawerOpen(GravityCompat.Start))
DrawerLayout.CloseDrawers();
else
base.OnBackPressed();
}