33

I'm facing a problem when developing layout files for Android with Eclipse ADT Plugin. Some of my files, when opened, does not show the Graphical layout tab, just as below:

enter image description here

The others (actually, the older ones), instead, show it correctly.

enter image description here

Does anyone knows what can be done in this case?

Thanks in advance!

Guilherme
  • 597
  • 1
  • 6
  • 9
  • This may be a permanent solution: http://stackoverflow.com/questions/8152046/android-xml-editors-broken-in-eclipse/8152113#8152113 – Paresh Mayani Nov 16 '11 at 13:03

2 Answers2

58

Have you tried right clicking one of the layout files in the Package Explorer view and clicking

Open With -> Android Layout Editor

Paresh Mayani
  • 127,700
  • 71
  • 241
  • 295
Twobard
  • 2,553
  • 1
  • 24
  • 27
  • Thanks very much, man! I just can't figure out why these files are now being opened with the other editor. Older files are opened with the Android Layout Editor as expected. – Guilherme Apr 19 '11 at 16:33
  • 1
    I've had the same problem man, it seems eclipse has a mind of its own when it comes to opening android xml files! – Twobard Apr 19 '11 at 16:35
  • I just started having this same issue. Your solution worked. Thanks! – ericharlow May 19 '11 at 19:38
  • I also have the same problem after updating to ADT 14. After trying the suggestion It works thanks it save my life. –  Oct 31 '11 at 08:38
  • I had the same problem - it worked for me only after first opening with Android Layout Editor as per your answer (which gave a blank editor window) and then also restarting Eclipse, at which point everything's fine again. Thanks! – magritte Nov 09 '11 at 22:40
  • Whilst this works, is there no way to resolve this permanently? I used to be able to double-click an xml file and have it open correctly, but now I have to right-click etc. Its a massive pain! Tried fresh install! – neildeadman Nov 16 '11 at 12:48
  • 4
    `Android Layout Editor` doesn't exist anymore. It appears to now be `Android Common XML Editor`. – Mxyk Jun 28 '12 at 13:56
3

If you can see the Graphical Editor tab and still if nothing is showing up, restart eclipse. Worked for me!

abat
  • 655
  • 1
  • 9
  • 19