I have 3 tabs in my app (A, B and C). I have created fragments for each of them. Now, I want a sliding menu / navigation drawer inside only tab A.The menu should show up only inside Tab A and not anywhere else. How can I do it ? Someone please help !
Asked
Active
Viewed 261 times
0

Darwind
- 7,284
- 3
- 49
- 48

Harsh Pokharna
- 1,121
- 2
- 9
- 14
-
2How about adding a navigation drawer in the regular way (see api guide) and just disable the gesture (locking the drawer) and disable actionbardrawertoggle when on specific tabs? – Gyebro Oct 06 '14 at 17:43
-
Can you point me to a tutorial ? – Harsh Pokharna Oct 06 '14 at 17:49
-
@Gyebro can't I do this any other way ? – Harsh Pokharna Oct 06 '14 at 17:49
-
http://developer.android.com/training/implementing-navigation/nav-drawer.html - to lock the `NavigationDrawer` do like this in the specific `Fragments` where you want it closed: `mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);` and in the `Fragment` where it should be unlocked: `mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED);` - this is merely what @Gyebro stated with a link and some code... – Darwind Oct 06 '14 at 20:35