Reputation: 5061
Well as the title says I need to hide drawer menu in android studio layout editor so I can see other views underneath. Here is a picture
Is there xml attribute that can do the trick ? Note I don't need to hide or show it programmatically, I just need to hide it in xml so in editor preview it doesn't hide view elements that lay under.
Upvotes: 2
Views: 1307
Reputation: 39191
The tools:openDrawer
attribute on the <DrawerLayout>
element controls which drawers are shown in the layout preview. Simply removing that line should cause no drawers to be shown. However, if that doesn't work as expected, for some reason, it seems that setting the attribute to a non-existent drawer gravity works, too.
Upvotes: 4