Note that there are some explanatory texts on larger screens.

plurals
  1. POcreating a new linear layout
    text
    copied!<p>i created button and other... but now when i want to create a three buttons green,red,blue they are not showing up i want them to be directly down the button1 but they are not showing up i wish you can help me this is the error im getting -xml documents must start and end within the same entity the error is showing in the last last last linearlayout</p> <p>this is the code im having problem with </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" &gt; &lt;LinearLayout android:id="@+id/linearLayout1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical" &gt; &lt;TextView android:id="@+id/secondLine" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/Greetings" android:textSize="20sp" /&gt; &lt;Button android:id="@+id/Button1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /&gt; &lt;/LinearLayout&gt; &lt;RelativeLayout android:id="@+id/relativeLayout1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" &gt; &lt;/RelativeLayout&gt; &lt;LinearLayout android:id="@+id/linearLayout2" android:layout_width="fill_parent" android:layout_height="20dp" android:orientation="horizontal" &gt; &lt;TextView android:id="@+id/thirdLine" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:layout_gravity="center" android:background="#ff0000" android:textColor="#000000" android:text="red" /&gt; &lt;TextView android:id="@+id/fourthLine" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:layout_gravity="center" android:background="#00ff00" android:textColor="#000000" android:text="green" /&gt; &lt;TextView android:id="@+id/fifthLine" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:layout_gravity="center" android:background="#0000ff" android:textColor="#000000" android:text="blue" /&gt; &lt;RelativeLayout android:id="@+id/relativeLayout2" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" &gt; &lt;/RelativeLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>this is a picture for the red blue green buttons where to be while mine are down <a href="https://www.dropbox.com/s/73grdc0iff3ql3u/Untitled.png" rel="nofollow">https://www.dropbox.com/s/73grdc0iff3ql3u/Untitled.png</a></p> <p>this is what i reached to till now but i want them to be equally distributed like the picture above <a href="https://www.dropbox.com/s/73grdc0iff3ql3u/Untitled.png" rel="nofollow">https://www.dropbox.com/s/73grdc0iff3ql3u/Untitled.png</a></p>
 

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