Eclipse is missing Graphical Layout and Source tabs when editing Android XML files

4.2k views Asked by At

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!

4

There are 4 answers

1
Bananeweizen On BEST ANSWER

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.

5
Marcin S. On

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

0
Trzy Gracje On

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.

0
Akhilesh Mani On

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.