android - LinearLayout gives an error -


I have a problem I was trying to create an app, but I get an error and I actually know this It is not how to fix it. It gives a red cross before the editing text, and I think it has to do with how everything is open / closed, but I can not find any problems.

  & lt; LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" xmlns: tools = "http://schemas.android.com/tools" Android: layout_width = "match_parent" Android: layout_height = "Match_parent" Android: orientation = "horizontal" & lt; EditText android: id = "@ + id / edit_message" Android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: hint = "@ string / edit_message" /> & Lt; Button Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" android: text = "@ string / button_send" /> / & Gt;  

Want to hear from you?

This is your problem

You have & gt; on your linear layout ; The icon is closed.

This is the correct way

  & lt; LinearLayout xmlns: Android = "http://schemas.android.com/apk/res/android" xmlns: tools = "http://schemas.android.com/tools" Android: layout_width = "match_parent" android: layout_height = "Match_perrent" android: orientation = "horizontal" & gt; & Lt ;! - items go here - & gt; & Lt; / LinearLayout & gt;  

Comments