I\'ve been trying to move my code across to the DrawerLayout as suggested by android here as SlidingDrawer is deprecated.
DrawerLayout
SlidingDrawer
My problem is tha
If you are using the drawer layout from the support library as we can see from your question that you are, there is also the method:
closeDrawers()
This will close all open drawers (which is usually just the one).