I have a Activity A
, a ListFragment P
and 2 Fragments Q
and R
.
When the app is launched, A
is created, which loads P
. Based on what user clicks, it is replaced by Q
or R
.
Now by referencing this tutorial, I have implemented a Navigation Drawer which shows certain items to the user. However, since I have implemented the Navigation Drawer in the Activity, it shows for all the Fragments.
I want it to be only available to P
.
(Very much similar to Googles Gmail app. When the user is on the main screen - the drawer is present. When user taps to open an email, the drawer changes to back button)
I am not sure how to translate the above code. Any help is appreciated.