无法打开,从布局和放两个main.xml中的文件;布局土地在同一时间? [英] Unable to open both main.xml files from layout & layout-land at the same time?

查看:122
本文介绍了无法打开,从布局和放两个main.xml中的文件;布局土地在同一时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在开发Android的,我不能在Eclipse编辑器同时打开多个main.xml中的文件。每次我打开一个,它只是替换,而不是打开一个新的标签的第一个main.xml中的编辑器(标签)与新一, - 即使现有选项卡的内容是未保存

While developing for Android, I am unable to open more than one main.xml file in an Eclipse editor at a time. Each time I open one, it simply replaces the editor (tab) of the first main.xml with the new one, instead of opening a new tab - even if the contents of the existing tab were unsaved!

更奇怪的,我可以从不同的项目,没有任何问题打开多个main.xml中的文件。当他们在同一个项目中这只是发生。

Even stranger, I can open multiple main.xml files from different projects with no problems. This only happens when they're within the same project.

不知道如何解决或解决此问题?这是一个真正的消磨时间的。

Any idea how to fix or work around this? It's a real time-waster.

(运行Eclipse 3.5.2经典64位瓦特/ Win7家庭premium 64 ADT 0.9.7)

(Running Eclipse Classic 3.5.2 64bit w/ADT 0.9.7 on Win7 Home Premium x64)

修改为净度:

Edit for clarity:

这不是开了两次相同的文件。在一个项目中,有一个在一个称为布局目录中称为main.xml中的文件。还有一个文件也被称为在一个名为布局 - 土地目录main.xml中。这两个文件不能同时被打开。我不知道这是否与Eclipse或ADT的一个问题。

It's not the same file opened twice. In one project, there is a file called "main.xml" in a directory called "Layout". There is another file also called "main.xml" in a directory called "Layout-Land". These two files cannot be opened at the same time. I'm not sure if this is a problem with Eclipse or with ADT.

更多信息:

More info:

有关踢我的那些相同的目录中创建两个新文件(这两个被称为item.txt),他们都正常打开(各自在自己的标签)。我改名为他们两个item.xml,并试图再次打开它们,果然,他们打了相同的标签。这使我相信ADT有过错,因为这些布局目录中的XML文件打开ADT的布局工具。我虽然是错误的。

For kicks I created two new files in those same directories (both called "item.txt") and they both opened properly (each in their own tab). I renamed them both to "item.xml" and tried opening them again, and sure enough they fought for the same tab. This leads me to believe ADT is at fault since xml files in these layout directories are opened with ADT's layout tool. I could be wrong though.

推荐答案

右键单击main.mxl并选择新editor'-这将创造另一个main.xml中,你可以与风景版本通过双击替换。

Right click on main.mxl and choose 'new editor'- this will create another main.xml which you can replace with the landscape version via a double click.

不过,日食做这行推理这样你就不会感到困惑和博克您的文件了。

However, eclipse does this for a reason- so you don't get confused and bork your files up.

我想你也可以在文本编辑器的侧效率损耗小编辑这些文件。

I would think you also could edit these files in a text editor to the side with little loss of efficiency.

这篇关于无法打开,从布局和放两个main.xml中的文件;布局土地在同一时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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