对于某些布局文件,图形布局选项卡不会出现在 Eclipse 中

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5715802/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 16:12:04  来源:igfitidea点击:

Graphical Layout tab does not appear for some layout files into Eclipse

androideclipseuser-interfacelayoutadt

提问by Guilherme

I'm facing a problem when developing layout files for Android with Eclipse ADT Plugin. Some of my files, when opened, does not show the Graphical layout tab, just as below:

使用 Eclipse ADT 插件为 Android 开发布局文件时遇到问题。我的一些文件在打开时不显示图形布局选项卡,如下所示:

enter image description here

在此处输入图片说明

The others (actually, the older ones), instead, show it correctly.

相反,其他人(实际上是较旧的人)正确地显示了它。

enter image description here

在此处输入图片说明

Does anyone knows what can be done in this case?

有谁知道在这种情况下可以做什么?

Thanks in advance!

提前致谢!

回答by 2bard

Have you tried right clicking one of the layout filesin the Package Explorer view and clicking

您是否尝试过右键单击Package Explorer 视图中的布局文件之一,然后单击

Open With -> Android Layout Editor

Open With -> Android Layout Editor

回答by abat

If you can see the Graphical Editor tab and still if nothing is showing up, restart eclipse. Worked for me!

如果您可以看到 Graphical Editor 选项卡并且仍然没有显示任何内容,请重新启动 eclipse。对我来说有效!

回答by Abhishek Singh Rathaur

Please Try This

请试试这个

right clicking on layout files of any in the Package Explorer view and clicking

右键单击 Package Explorer 视图中的任何布局文件,然后单击

Open With -> Android Layout Editor

打开方式 -> Android 布局编辑器