简体   繁体   English

Y图形布局有时在Eclipse&MOTODev上不显示吗?

[英]Y graphical layout doesn't show sometimes on eclipse &MOTODev ?

my graphical layout doesn't appear on my eclipse window at same time main.xml can visible and editable also,what happening on XML file. 我的图形布局没有同时出现在我的Eclipse窗口上,main.xml也可以看到和编辑,而XML文件上发生了什么。 i tried to close xml and opened again ,but still it continues..any permanent solution on this. 我试图关闭xml并再次打开,但是仍然继续..对此的任何永久性解决方案。 this happened on eclipse &MotoDev also 这发生在Eclipse&MotoDev上

Sounds like XML files are being opened by an editor other than the default Android editor. 听起来好像XML文件正在由默认Android编辑器以外的其他编辑器打开。 This can be a problem if you are using other plugins that handle XML files. 如果您正在使用其他处理XML文件的插件,则可能会出现问题。

  1. Close all open windows 关闭所有打开的窗口
  2. Right click your layout.xml and choose "Open With" 右键单击您的layout.xml,然后选择“打开方式”
  3. Choose "Android Common XML Editor" 选择“ Android通用XML编辑器”

Eclipse或MOTODEV中的Android Common XML Editor

If you have imported the project. 如果已导入项目。 then make it sure imported project should be in your selected workspace. 然后确保导入的项目应该在您选择的工作空间中。

or 要么

If you have imported some project from another platform ie project is made in 2.2 and you have only 4.0, then it will not show you layouts, then you have to download 2.2 sdk for it 如果您从另一个平台导入了某个项目,即项目是在2.2中完成的,而您只有4.0,那么它将不会显示布局,那么您必须为其下载2.2 sdk

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM