I'm working through Android layout and I know there is this new(er) thing call Blueprint. I'm wondering what the Blueprint view offers.
What I've Tried
1. Added Button and Moved It Around Via Constraints
I don't see really any difference between the two design views (normal and blueprint).
Oh, I did see one difference in the two views.
You only see the outlines of the controls if you are floating above the normal design view (image 1 below). If your cursor is not in the window you don't see them (image 2 below).
Is that the difference?
2. Searched Google's Android Dev Site
I could only find one small bit of information at : https://developer.android.com/studio/write/layout-editor
It said:
the Blueprint view (only outlines for each view)
The blueprint takes up a lot of screen space and I'm wondering if that is all it offers (just outlines of controls)?
I can't see how that is more beneficial than just seeing the "outlines" in the normal design view by floating over view.
Does blueprint offer something additional that I'm not understanding? Is there some other benefit?
The blueprint mode is new to Android Studio 2.0 and portrays a simplified, outlined view of our UI. This is particularly useful when it comes to editing the spacing and proportions of complex layouts without the distraction of content.
Use FrameLayout, RelativeLayout or a custom layout instead. Those layouts will adapt to different screen sizes, whereas AbsoluteLayout will not. Definitely right. I recommend RelativeLayout since it keeps the view hierachy flat.
The Layout Editor enables you to quickly build layouts by dragging UI elements into a visual design editor instead of writing layout XML by hand.
AFAIK there really isn't any 'huge' advantage to the blueprint view. It provides a wireframe view of your design.
There are a few cases where it comes in useful though, for example,
View
is invisible, it won't be seen in the preview but it will visible in the blueprint view.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With