Android Studio 中的布局预览在哪里? [英] Where is the layout preview in Android Studio?

查看:61
本文介绍了Android Studio 中的布局预览在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 Android Studio,但是当我编辑我的布局文件时,我找不到实时预览!我只看到一个 XML 文件.如何在图形视图中查看我的布局?

I installed Android Studio, but when I edit my layout files, I can't find a live preview! I just see an XML file. How can I see my layout in graphical view?

这就是我的情况:

推荐答案

UPDATE 2 (2020-03-16)

较新的 Android Studio 版本更改了此按钮的位置.现在,如果您想查看布局设计预览,则需要按 xml 右上角的按钮之一.看起来像图像图标的按钮将打开设计仪表板,而它旁边的按钮将打开设计放置在 XML 代码旁边的拆分视图:

The newer Android Studio version changed the location of this button. Now if you want to see the layout design preview you will need to press one of the buttons at the top right of your xml. The button that looks like an image icon will open the design dashboard, while the button next to it will open the split view where the design is placed next to the XML code:

原件 (2013-05-21)

您应该在 xml 文本编辑器下的 Text 按钮旁边有一个 Design 按钮:

You should have a Design button next to the Text button under the xml text editor:

或者您可以使用右上角的Preview按钮在XML代码旁边添加一个预览窗口:

Or you can use the Preview button in the upper right corner to add a preview window next to the XML code:

更新:

如果你没有,那么这样做:View -> Tool Windows -> Preview

If you dont have it, then do this: View -> Tool Windows -> Preview

这篇关于Android Studio 中的布局预览在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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