Eclipse does not show sentences in Android XML

I installed Eclipse Indigo and the autocomplete function works fine in the Java editor. The problem is in the XML editor, when I press CTRL + Space, none of the suggestions come up.
Why is this?

+4
source share
2 answers

I had the same problem. I tried to solve with

sample.xml layout file -> Right click on it -> Open With -> Android Layout Editor 

But no luck. Then I tried in a different way

  • Select “Project” (for example, “My Project”) from the “Package Explorer”

  • Right click on Myproject

  • Select Properties from the popup.

  • Choose the Java build path from the left pane

  • Select a source from the right tab

  • Choose Myproject / gen

  • Click the delete button

  • Repeat steps 6 and 7 for Myproject / src

  • Click OK

  • Click Add Folder.

  • Add Myproject / gen and Myproject / src

  • Ok again ok

He solved the problem.

+6
source

Locate the XML file in Package Explorer and right-click it. Select Open With -> Android Layout Editor (or select the appropriate option from the other options available in the submenu). Bingo! Autocomplete / content support should start working.

+3
source

All Articles