kayton
kayton

Reputation: 3759

eclipse android common xml editor stops rendering text correctly (randomly)

So I have (and have had) this problem when editing Android XML in eclipse. I've tried different versions of eclipse and different Android SDK's and entire re-downloads and whatnot but am still presented with this error. When editing an XML in eclipse, in a somewhat unpredictable manner, the text will randomly visibly misalign itself. The text itself is still in the same place, but it's rendered to be in different places. The problem doesn't go away unless I restart eclipse altogether.

The three pictures below are all of the exact same file without ANY modifications.

This picture is how it looks when I select All (ctrl+A)

How it looks when I select all (ctrl+A)

This picture is how it looks when I deselect

How it looks when I unselect text

And this last one is how it looks when I restart eclipse. Note that this is the proper look and it should be like this all of the time.

How it looks when I restart eclipse (this is how it's supposed to look)

I've been experiencing these problems for a very long time and it's very irritating. I've also reinstalled Windows-7 x64 many times and the problem has never gone away. Please help?

Upvotes: 9

Views: 1249

Answers (3)

ja_mesa
ja_mesa

Reputation: 1969

I solved the problem formating the document: Right click on the editor window, from the menu select Source -> format or, in short: Ctrl+Shift+F

Upvotes: 4

jsDebugger
jsDebugger

Reputation: 122

I am facing similar issues too, when you select a line in xml source view, the lines keeps on jumping up and down, some times it changes to previous line. But if you open the xml in some non android xml editor then it works fine. Not able to use android graphical editor.

Upvotes: 0

snatr
snatr

Reputation: 21

Closing and opening the tabs wasn't working for me. But something that did get it to stop was to go into preferences, and under XML/XML Files/Editor and choose clear blank lines and applied.

I don't know if it will continue to happen though.

Upvotes: 0

Related Questions