5

When I edit XML files in Eclipse using Android Common XML Editor I am only able to use the graphical layout editor. I see in pictures online how there are supposed to be tabs at the bottom for Graphical and Source but I have none. How do I get this fixed? Using Eclipse 4.2.1. Thanks!

Trung Nguyen
  • 7,442
  • 2
  • 45
  • 87
J1NKL3
  • 53
  • 1
  • 4

4 Answers4

8

That is probably a problem of Unity not displaying the editor correctly. I bet that you can still switch between the tabs using the keyboard. Press ShiftAltF7 to navigate to the previous page and AltF7 to navigate to the next page of a multi page editor.

Community
  • 1
  • 1
Bananeweizen
  • 21,797
  • 8
  • 68
  • 88
  • Shift+Alt+F7 works thank you! Still wish I could get the tabs working but at least I have a working solution! – J1NKL3 Oct 06 '12 at 06:21
1

I faced same problem so far.

Solution:

==> In your Layout editor there is a android version configuration dropdown box, from there select proper android version. (Eg. "Android 2.3.3")

try this and let me know.

Akhilesh Mani
  • 3,502
  • 5
  • 28
  • 59
0

I have discovered that this problem occurs after installing custom theme for eclipse. In my case it was "Dark Juno" theme. Bring back original theme and everythink will be all right again :-)

------ EDIT ------

You can use MoonRise dark theme ( https://github.com/guari/eclipse-ui-theme ). Bottom bar works perfectlly and design looks good.

Trzy Gracje
  • 2,969
  • 4
  • 20
  • 24
-1

Please try to use OpenWith ->Layout Editor on the xml file witch u want to open from project explorer under res folder

Marcin S.
  • 11,161
  • 6
  • 50
  • 63
  • My options are Android Common XML Editor, XML Editor, Text Editor, System Editor, Default Editor, Other – J1NKL3 Oct 06 '12 at 03:41
  • then you can try to delete project, without deleting the source files and do File>Import>Existing Projects into Workspace, and select your project – Marcin S. Oct 06 '12 at 03:44
  • check also this: Window-->Preferences-->Editors-->File Associations-->.*XML--->set this as Default one---->ok – Marcin S. Oct 06 '12 at 03:50
  • No change after restart either... this is frustrating! – J1NKL3 Oct 06 '12 at 04:04
  • it seems that your eclipse is corrupted. In eclipse go to help and choose 'Check for updates' Let him install all the updates that were found. Then eclipse should restart and hopefuly you will be able to see all the tabs – Marcin S. Oct 06 '12 at 04:35