I’m building an app using Android Studio and Java. When I’m trying to make the layout in the Layout Editor is there any way to hide components so I can see better? I don’t mean using Java when starting the app, I mean in the editor.
Question posted in Android Studio
The official documentation can be found here.
The official documentation can be found here.
3
Answers
Sure, in XML
tools:visibility="gone"
on the component.or in the design view to the right of the component name in the component tree you can click and select
tools:visibility
there.Do you ask about the visibility
you can set
in xml file
tools
namespace that enable design-time features so When you build your app, the build tools remove these attributes so there is no effect on your APK size or runtime behavior.