|Messy Android Layout XML|
Eclipse has some handy auto-formatting tools. Press Ctrl+Shift+F to auto-format the selected file. Or from the menu, click Source->Format.
|Formatting Menu Option|
Now your file will be cleaned up and easier to edit.
|Formatted Android Layout XML|
If you have text selected, only the selected text will be formatted. If no Text is selected, the entire file will be formatted. And Auto-Format will work on your Java files too.