Android Studio:蓝图区域有什么作用?有什么好处? [英] Android Studio: What does the blueprint area do? What benefit is it?

查看:980
本文介绍了Android Studio:蓝图区域有什么作用?有什么好处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究Android布局,我知道有一个叫做Blueprint的新东西.我想知道蓝图"视图提供了什么.

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.

我尝试过的事情

1.添加了按钮并通过约束对其进行了移动

我看不到两个设计视图(普通视图和蓝图)之间有什么真正的区别.

I don't see really any difference between the two design views (normal and blueprint).

哦,我确实在两种视图中看到了一种区别.
如果您浮在普通设计视图上方(下面的图像1 ),则只能看到控件的轮廓.如果光标不在窗口中,则看不到它们(下面的图像2 ).

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).

有区别吗?

2.搜索了Google的Android开发站点

我只能在以下位置找到一小部分信息: https://developer.android .com/studio/write/layout-editor

I could only find one small bit of information at : https://developer.android.com/studio/write/layout-editor

它说:

蓝图视图(仅每个视图的轮廓)

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?

推荐答案

AFAIK蓝图视图确实没有任何巨大"优势.它提供了设计的线框视图.

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不可见,则不会在预览中看到它,但会在蓝图视图中看到它.
  • 重叠视图更加清晰可见和可识别.
  • 它提供了更加整洁的视图,其中可以更直接地识别约束和视图.
  • 它还用于预览不可见"的组件(例如,以编程方式设置src的imageview).
  • 渲染蓝图视图的速度更快. (正如Martin Marconcini在评论中指出的那样)
  • If your View is invisible, it won't be seen in the preview but it will visible in the blueprint view.
  • Overlapping views are more clearly visible and identifiable.
  • It provides a more clutter-free view where the constraints and views are more immediately identifiable.
  • It's also used to be useful for preview of components that are 'invisible' (for example, imageview who's src get set programmatically).
  • Rendering the blueprint view is faster. (As pointed out by Martin Marconcini in the comments)

这篇关于Android Studio:蓝图区域有什么作用?有什么好处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆