From what it looks like, it appears to be Eclipse getting confused more than anything. Your layout does appear to be valid, though you might want to try putting the RelativeLayout inside the LinearLayout. Try right-clicking and deleting the error in the Problems view, and edit something to force a rebuild.