Android的XML编辑器在Eclipse中破 [英] Android XML editors broken in Eclipse

查看:141
本文介绍了Android的XML编辑器在Eclipse中破的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

直到今天(我不知道我做了什么导致此),如果我双击一个Android XML文件,那么正确的编辑将会出现。

Until today (I have no idea what I did to cause this), if I double-clicked an android XML file, then the correct editor would appear.

例如,双击布局文件会打开一个图形布局选项卡,并与直接编辑XML内容标签(命名为正在编辑的文件)。现在,我得到的是一个设计和源标签!

For example, double-clicking a layout file would open a Graphical Layout tab and a tab with the XML contents for direct editing (named as the file being edited). Now all I get is a Design and a Source tab!

我无法preVIEW我编辑(这是一样的这里的布局:<一href=\"http://stackoverflow.com/questions/5715802/graphical-layout-tab-does-not-appear-for-some-layout-files-into-eclipse\">Graphical布局选项卡上不会出现一些布局文件到Eclipse )

I am unable to preview the layouts I am editing (this is the same as here: Graphical Layout tab does not appear for some layout files into Eclipse)

该链接还给出了一个处理方法中,我可以用鼠标右键单击该文件,并打开与正确的编辑器,但是这不是一个解决方案!

That link also gives a 'workaround' in that I can right-click the file and open with the right editor, but this isn't a solution!

我怎样才能permenantly排序呢?我已经重新安装了新鲜的Eclipse,ADT无济于事(没有使用新的SDK ......将那件事?)。

How can I sort this permenantly? I have re-installed fresh Eclipse, ADT to no avail (haven't used fresh SDK... will that matter??).

**注意这发生在所有Android XML文件,而不只是那些布局我上面提到的! **

** Note this happens to all Android XML files, not just layout ones I mentioned above! **

推荐答案

是的,这可能是一个永久的解决方案:

Yes this may be a permanent solution:


  1. 选择任何XML布局文件

  2. 单击 窗口 - &GT; preferences 菜单。

  3. 按照步骤进行附加的图像提及。

这篇关于Android的XML编辑器在Eclipse中破的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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