Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try putting your first line into your LinearLayout and then everything else in your RelativeLayout. I haven't tried this code, but if I understand your scenario correctly, it should do the trick.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="200dp" android:layout_height="200dp" android:layout_marginTop="20dp" android:background="#3AF"&gt; &lt;LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_parent" android:layout_alignParentTop="true" android:layout_marginTop="20dp" android:background="#AAA"&gt; &lt;ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:src="@drawable/ic_launcher" android:id="@+id/imageView" android:layout_alignParentLeft="true" android:layout_alignParentTop="true"/&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="New Text" android:padding="10dp" android:id="@+id/textView"/&gt; &lt;/LinearLayout&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="New Text" android:padding="10dp" android:id="@+id/textView1"/&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="New Text" android:padding="10dp" android:id="@+id/textView2"/&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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