Ever got this error in eclipse before “Incorrect line ending: found carriage return (\r) without corresponding newline (\n)” ? Its the singly most annoying thing to happen when opening android layout xml files. Its caused by a bug in the previous version of the editor that made inconsistent line endings in the files. The new editor picks it up as an error.
I fixed this by copying and pasting the xml code in notepad then pasting it back inside eclipse. A quicker fix is to press Ctrl + Shit + F and then saving the file.
hope i saved u a headache