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

你说的曾经没有我的故事 提交于 2019-12-04 23:39:41

问题


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!


回答1:


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.




回答2:


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.




回答3:


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.




回答4:


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



来源:https://stackoverflow.com/questions/12756416/eclipse-is-missing-graphical-layout-and-source-tabs-when-editing-android-xml-fil

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!