I have an Activity
class that have a DrawerLayout
. That layout shows a list in Drawer and let user to switch between fragments
. In these Fragments
, there are some URLs and when user clicsk on that, a WebviewFragment
would be shown. However, I don't want to show the DrawerLayout
in the WebViewFragment
. Instead, I would prefer user would being redirected to previous Fragment
.
Is there any way for me to show/hide the DrawerLayout
depends on what the current Fragment
is?
I try to call mDrawerLayout.setVisibility(View.GONE
), but it seems that it is not complete. At least the ActionBar
icon is still the drawer icon.