ADT / Eclipse - graphic / screen artifacts and moving lines of text in the layout editor main.xml

Possible duplicate:
Moving and disappearing lines of code; problems with the Eclipse XML editor

I am new to Eclipse and ADT, but I set up my environment on two different machines, and they both display the same oddities (both are 64-bit Windows 7).

When you change the tabs between the graphic layout and the main.xml views, the lines of code in the main.xml view will begin to disappear or move. It is hard to display this without a video or animated gif, but I will try with these screenshots:

image 1 image 2

Please note that all I did was select a block of text, and suddenly all these artifacts will sound. This makes development a little less enjoyable.

Any thoughts?

+3
source share
1 answer

After some tests, I found that the option "Automatically format XML edited by the visual layout editor" (in the "Settings | Android | Editors" section) may be to blame.

In my tests, I found that changing a property (e.g. layout_gravity) in graphic layout mode always wraps the file visually when I return to XML (text) mode when this option is ON, but I have no problem when it is turned off.

XML , Ctrl - Shift - F. , " "; ; Ctrl - S, , XML.

, " " " ", .

, , ; , : Ctrl - A, Ctrl - C, Ctrl - V , / . Select All, Copy, Paste; XML .

+5

All Articles