Preview Android Studio Hide elements

0

I find it quite annoying to have the main menu in the preview of my app in the IDE Android Studio

This does not leave a quiet layout without having to erase it and put it back in order to see the back elements

Is there any way to hide it in the preview?

    
asked by Bruno Sosa Fast Tag 16.02.2018 в 13:44
source

1 answer

1

Remove the tools:openDrawer="start" attribute in the <DrawerLayout> element to hide the drawer:

<android.support.v4.widget.DrawerLayout android:id="@+id/drawer"
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"

    tools:openDrawer="start" <------ELIMINA EL ATRIBUTO PARA QUE SE OCULTE DEL DESIGNER
>
    
answered by 16.02.2018 / 13:49
source