Eclipse does not show graphic layout for Android XML files

I had a HD hardware failure the other day, and tried to recreate the Android programming environment.

I installed the Eclipse and Android SDK. I updated the SDK to the latest version.

Then I imported my project from the backup folder. When I look at my layout files in eclipse, I cannot view Grphical.layout, as this is not an option. I get the following tab options for the page (design or source).

However, my old environment object that I have in the virtual machine gives me the following tab options for the layout file (Graphical Layout or filename.xml)

Any ideas why this is happening? I assume that this should be something to do with eclipse, not realizing that its menat should look at android xml layout files.

Please, help,

Yane

+6
source share
14 answers

comic, if the graphic layout is not displayed by opening the xml file, try using OpenWith → the Layout Editor in the xml file that you want to open from the project explorer in the res folder

+18
source

If the answer above does not work, and if you don’t see the “Layout Editor” option in the right click, restart eclipse. Worked for me.

+8
source

sometime the graphic layout of show.but shows nothing. only empty. This is because the minimal sdk manifest does not support viewing the layout. To decide that, change the api level that is displayed in the right corner of the layout display area.

+3
source

I tried the option proposed by Mooney, but did not work. Then I noticed that the version of Android in the graphic layout was higher than what I chose for my project, which caused a problem. After installing it in the appropriate version, it worked fine.

+2
source

I ran into this problem, but this did not fix the restart. In fact, my xml file says that “MyFile.xml” was present in the layout subfolder and in the layout folder itself (root). When I opened "MyFile.xml" from a subfolder, it just showed the code. When I opened "MyFile.xml" directly from the layout folder (and not from the itz subdirectory), it showed both the design and the code.

: p it was my mistake!

0
source

Just follow this pattern: Package Explorer ---> res → Layout ---> activity_main.XML Open activity_main.XML

May, 2013

0
source

just open it with a regular xml editor and put them next. "right-click", open the xml editor and drag it so that the window layout is side by side.

0
source

My problem was that I installed everything and restarted eclipse. But I have not returned. Window | Android SDK Manager.

When I did this, I saw this event, although I installed everything and the SDK worked fine. There are 3 more packages left for installation. I installed this (and some sample code). Restarted Eclipse and everyone worked like a charm.

0
source

I had the same problem with ADT eclipse. This probably happens when you change something with your editor, for example, change themes. Don’t worry about this, here I have a solution for your problem so that it moves with your xml sourc and xml Layout files, because use this key combination to display the graphic layout. Shift + Alt + F7 and to navigate with the original xml file editor, use these shortcuts as Alt + F7 Thanks for such a good question. I hope my answer will be useful to everyone who is stuck with this.

0
source

This question was asked 3 years ago, I'm sure you got your solution, however I also ran into the same problem, but got the solution in eclipse, here it is: -

1) Go to help-> AboutEclipse-> Installation Information.
2) check the Android version of DDMS, the Android development tool, the Android hierarchy viewer, the native Android development tool, Android tracking and the tracer for openGl ES on the installed software tab.
3) If they have a different version, you should update them all. 4) Go to help-> check the update in eclipse and follow the instructions.
5) Then restart eclipse.

This solves my problem.

0
source

In the upper right corner, try using a different version of Android to render layouts in eclipse. (Little green android icon). It worked for me.

0
source

If you don’t see the Android Layout Editor,
right-click on the xml layout file and select "Open with | Android Common XML Editor then select the" Graphic Layout "tab.

See here

0
source

If the above solutions do not fix the problem, delete the very first line that is automatically generated when you create the xml file and select some theme, for example, "No Title Bar" or another. Your problem will be fixed.

-1
source

I only do

  • WORKSPACE ALL CONTENT DELETE
  • INSTALLED adt-bundle-windows-x86-20131030 USED
  • ECLIPS DOUBLE CLICK

SOLVE MY PROBLEM

-1
source

Source: https://habr.com/ru/post/896495/


All Articles