In my application I use ViewPager
for show two fragments in an activity.
In one of the fragments I use NavigationDrawer
. I want when click on onBackPress
close this NavigationDrawer
.
I wrote below code for open this Drawer :
reviewSerialFrag_DrawerLayout.openDrawer(Gravity.END);
I want that when I click on onBackPress it will close this drawer with below code:
reviewSerialFrag_DrawerLayout.closeDrawer(Gravity.END);
questioner, put in what the current problem is, please