Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 664
J1NKL3 Avatar asked Oct 06 '12 03:10

J1NKL3


People also ask

Why XML file is not opening in eclipse?

To open XML files in the default editor: In the DITA CMS Eclipse Client, click Window > Preferences. In the left pane, click DITA CMS > General Behavior. Clear the Open unlocked document in Read-only Editor checkbox.


2 Answers

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.

like image 168
Bananeweizen Avatar answered Oct 24 '22 03:10

Bananeweizen


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.

like image 1
Akhilesh Mani Avatar answered Oct 24 '22 01:10

Akhilesh Mani