I\'ve been trying to move my code across to the DrawerLayout as suggested by android here as SlidingDrawer is deprecated.
My problem is tha
if you want to avoid references to views or layouts in order to call isDrawerOpen, another way can be applied.
In this case you have to indicate the Gravity:
mDrawerLayout.isDrawerOpen(Gravity.START);
Being mDrawerLayout a reference to your DrawerLayout.
as you said, don't forget android:layout_gravity="start"