无法在新的 Android Studio 中找到 UI 设计器 [英] Unable to find UI designer in the new Android Studio

查看:54
本文介绍了无法在新的 Android Studio 中找到 UI 设计器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了最近发布的新android studio.我无法找到 xml 的 UI 设计预览,因为它在 eclipse 中.对此有何帮助或建议?

I have downloaded the new android studio that has been released recently. I am unable to find the UI design preview for the xml, as it is in eclipse. Any help or suggestions on that?

推荐答案

打开一个 xml 布局文件:

Open a xml layout file:

  • 在底部,您有两个选项卡:设计/文本
  • 在设计模式下,您可以直接看到预览
  • 在文本模式下,预览(默认)在右侧,通过最右侧栏中的预览"按钮切换

您也可以使用查看">工具窗口">预览"来显示/隐藏它

You can also show/hide it with View > Tool Windows > Preview

编辑

注意:IDE 仅在 Android 项目的 res/layout* 目录中编辑布局文件时才显示预览.特别是在 build/res/layout* 中编辑文件时不会显示,因为这些不是源目录而是输出目录.

Attention: the IDE only displays the preview if editing a layout file in the res/layout* directory of an Android project. In particular, it won't be displayed if editing a file in build/res/layout* since those are not source directory but output directory.

Resource 文件夹是自动设置的,可以在 Project Structure > Modules > [Module name] > Android > Resources 目录中查看(和更改).

The Resource folder is set automatically, and can be viewed (and changed) in Project Structure > Modules > [Module name] > Android > Resources directory.

这篇关于无法在新的 Android Studio 中找到 UI 设计器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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