linear layout is not working in android.got error of The markup in the document following the root element must be well-formed -


this code of linear layout in android when tried use multiple linear layout got error of "the markup in document following root element must well-formed".

    <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:paddingbottom="@dimen/activity_vertical_margin"     android:paddingleft="@dimen/activity_horizontal_margin"     android:paddingright="@dimen/activity_horizontal_margin"     android:paddingtop="@dimen/activity_vertical_margin"     android:orientation="horizontal"     tools:context=".mainactivity" > <edittext     android:id="@+id/edit_message "     android:layout_weight="1"      android:layout_width="0dp"     android:layout_height="wrap_content"     android:hint="@string/edit_message"/>  <button      android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:text="@string/button_send"     android:onclick="sendmessage" /> <imageview         android:id="@+id/imageview1"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:src="@drawable/logo" />    </linearlayout> <linearlayout >      <edittext     android:id="@+id/edit_message1 "     android:layout_weight="1"      android:layout_width="0dp"     android:layout_height="wrap_content"     android:hint="@string/edit_message"/> </linearlayout> 

you mission parent layout, can't have 2 roots on layout, need inside layout or last linearlayout need inside root layout


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -