Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Since <code>scrollview</code> can only have a child, the child can be any <code>layout</code>. Be in <code>LinearLayout</code> or <code>RelativeLayout</code>. So it should be something like this. <code>&lt;ScrollView&gt;</code> <code>&lt;RelativeLayout&gt;</code> <code>&lt;/RelativeLayout&gt;</code> <code>&lt;/ScrollView&gt;</code></p> <p>Your code would end up like this</p> <pre><code>&lt;RelativeLayout android:id="@+navigate/RLayout" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#ABABAB" xmlns:android="http://schemas.android.com/apk/res/android" &gt; &lt;ScrollView&gt; android:id="@+navigate/Scrollview" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;RelativeLayout android:id="@+navigate/RLayout02" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="10dp" android:textStyle="bold" android:id="@+id/hcorpo" android:layout_centerHorizontal="true" android:src="@drawable/hcorpo" android:layout_marginTop="15dp" /&gt;. &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_margin="10dp" android:orientation="vertical" android:id="@+id/firstRectangle" android:background="@drawable/bg" android:layout_below="@+id/hcorpo" &gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="10dp" android:textStyle="bold|italic" android:textColor="#000000" android:id="@+id/hotelinfos" android:layout_marginTop="10dp" android:layout_marginLeft="10dp" android:layout_below="@+id/hcorpo" android:layout_alignLeft="@+id/hcorpo"/&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="10dp" android:textStyle="bold" android:textColor="#000000" android:id="@+id/hotelname" android:layout_below="@+id/hotelinfos" android:layout_alignLeft="@+id/hotelinfos" android:layout_marginTop="10dp" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="10dp" android:textColor="#000000" android:id="@+id/hoteladdress" android:layout_below="@+id/hotelname" android:layout_alignLeft="@+id/hotelname" android:layout_marginTop="10dp" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="10dp" android:id="@+id/hotelphone" android:layout_below="@+id/hoteladdress" android:layout_alignLeft="@+id/hoteladdress" android:layout_marginTop="10dp" android:textColor="#12C" android:textStyle="bold|italic" android:onClick="onClick" android:clickable="true" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="10dp" android:textColor="#12C" android:onClick="onClick" android:clickable="true" android:textStyle="bold|italic" android:id="@+id/hotelemail" android:layout_below="@+id/hotelphone" android:layout_alignLeft="@+id/hotelphone" android:layout_marginTop="10dp" android:paddingBottom="10dp" /&gt; &lt;ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/picture" android:layout_below="@+id/hcorpo" android:layout_alignParentRight="true" android:layout_marginRight="10dp" android:layout_marginTop="10dp"/&gt; &lt;/RelativeLayout&gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_margin="10dp" android:orientation="vertical" android:id="@+id/SecondRectangle" android:background="@drawable/bg" android:layout_below="@+id/firstRectangle" &gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="10dp" android:textColor="#000000" android:textStyle="bold|italic" android:id="@+id/bookinginfos" android:layout_below="@+id/firstRectangle" android:layout_alignLeft="@+id/firstRectangle" android:layout_marginLeft="10dp" android:layout_marginTop="10dp" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="10dp" android:textColor="#000000" android:id="@+id/pnr" android:layout_below="@+id/bookinginfos" android:layout_alignLeft="@+id/bookinginfos" android:layout_marginTop="10dp" android:layout_marginRight="10dp" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="10dp" android:textColor="#000000" android:id="@+id/segmentCode" android:layout_below="@+id/pnr" android:layout_alignLeft="@+id/pnr" android:layout_marginRight="10dp" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="10dp" android:textColor="#000000" android:id="@+id/checkin" android:layout_below="@+id/segmentCode" android:layout_alignLeft="@+id/segmentCode" android:layout_marginTop="10dp" android:layout_marginRight="10dp" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="10dp" android:textColor="#000000" android:id="@+id/checkout" android:layout_below="@+id/checkin" android:layout_alignLeft="@+id/checkin" android:layout_marginRight="10dp" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="10dp" android:textColor="#000000" android:id="@+id/nights" android:layout_below="@+id/checkout" android:layout_alignLeft="@+id/checkout" android:layout_marginRight="10dp" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="10dp" android:textColor="#000000" android:id="@+id/roomType" android:layout_below="@+id/nights" android:layout_alignLeft="@+id/nights" android:layout_marginTop="10dp" android:layout_marginRight="10dp" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="10dp" android:textColor="#000000" android:id="@+id/boardBasis" android:layout_below="@+id/roomType" android:layout_alignLeft="@+id/roomType" android:layout_marginRight="10dp" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="10dp" android:textColor="#000000" android:id="@+id/paxNames" android:layout_below="@+id/boardBasis" android:layout_alignLeft="@+id/boardBasis" android:layout_marginTop="10dp" android:layout_marginRight="10dp" android:paddingBottom="10dp" /&gt; &lt;/RelativeLayout&gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_margin="10dp" android:orientation="vertical" android:id="@+id/thirdRectangle" android:background="@drawable/bg" android:layout_below="@+id/SecondRectangle" &gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="10dp" android:textColor="#000000" android:textStyle="bold|italic" android:id="@+id/forHotel" android:layout_below="@+id/SecondRectangle" android:layout_alignLeft="@+id/SecondRectangle" android:layout_marginLeft="10dp" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="10dp" android:textColor="#000000" android:id="@+id/supplierCode" android:layout_below="@+id/forHotel" android:layout_alignLeft="@+id/forHotel" android:layout_marginTop="10dp" android:layout_marginRight="10dp" android:paddingBottom="10dp"/&gt; &lt;/RelativeLayout&gt; &lt;/RelativeLayout&gt; &lt;/ScrollView&gt; &lt;/RelativeLayout&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