Well formed XML has one root element (this is excluding the header), so essentially what it complains about is that in your root you have two elements: LinearLayout and Menu. Wrap these in another layout element or move the menu into the LinearLayout and it should be fine.