Note that there are some explanatory texts on larger screens.

plurals
  1. PO<menu xmlns:android="http://schemas.android.com/apk/res/android"></menu> appears in main.xml
    text
    copied!<p>I am trying to create an Android project in Eclipse. In the menu directory, I am trying to replace the content of the existing main.xml. But </p> <pre><code> &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;&lt;/menu&gt; </code></pre> <p>keeps appearing as the very bottom line of my main.xml no matter how many times I delete it. What is going on? Is there some type of setting in Eclipse that I need to turn off. </p> <p>And an error message appears in Eclipse beside the line that says:</p> <p>"The markup in the document following the root element must be well-formed."</p> <p>I want to replace the main.xml with the following:</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/txtSpace" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/txtFirstNumber" /&gt; &lt;EditText android:inputType="numberDecimal" android:id="@+id/EditText01" android:layout_width="fill_parent" android:layout_height="wrap_content" &gt; &lt;/EditText&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/txtSpace" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/txtSecondNumber" /&gt; &lt;Button android:text="Multiply" android:id="@+id/Button01" android:layout_width="fill_parent" android:layout_height="wrap_content"&gt; &lt;/Button&gt; &lt;/LinearLayout&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload