Eclipse 默认打开Android xml 布局视图的问题

来源:互联网 发布:猎豹wifi mac 编辑:程序博客网 时间:2024/05/02 00:21
有时候,我们在导入工程的时候,会发现XML的视图不是layout布局视图,如下图所示:
 
简单的方式是右键该xml文件,open with --> android layout editor
不过总不能每个布局都这么设置过去吧

解决方法:

Window -> Preferences -> General -> Editors -> File Associations

File types: 选择 *.xml ,如下图所示:


Associated editors:选择Android Layout Editor(default) -> Default

点击OK大功告成。。。
原创粉丝点击