安卓:Eclipse的自动完成没有在XML文件中工作 [英] Android: Eclipse autocomplete does not work in xml files

查看:174
本文介绍了安卓:Eclipse的自动完成没有在XML文件中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到一个奇怪的问题,我的Eclipse IDE的Andr​​oid开发。

I am seeing a strange problem with my Eclipse IDE for Android development.

自动完成不,当我在为我的布局在main.xml中的文件按Ctrl +空格的工作。在左下角,我得到一个消息,说例如LinearLayout中未找到。

Autocompletion does not work when I hit Ctrl + Space in the main.xml file for my layouts. In the bottom left, I get a message saying for example "LinearLayout not found".

我也有我的文件中指定正确的命名空间。

I also have the correct namespace specified in my file.

它的工作,虽然其他的XML文件,比如我的strings.xml,我觉得很奇怪。

It does work though for other xml files, such as my strings.xml which I find strange.

这是因为我想很容易看到的视图或布局中所有可用选项的烦恼。

This is an annoyance as I'd like to easily see all the options available for a View or Layout.

任何人有关于如何解决这个任何想法?

Anyone got any ideas on how to resolve this?

推荐答案

请检查该文件是在Android XML布局编辑器被打开(不只是普通的XML编辑器)。用鼠标右键单击该文件,选择打开以,然后选择 Android的布局编辑器

Check that the file is being opened in the Android XML Layout editor (not just the "plain" XML editor). Right-click the file, choose Open With, and select Android Layout Editor.

这篇关于安卓:Eclipse的自动完成没有在XML文件中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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