Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>If you want to keep your view in a linear layout, you can add an empty view which is filling the gap with the attribute <code>android:layout_weight="1"</code> like :</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layout_home" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/background" android:orientation="vertical"&gt; &lt;LinearLayout android:id="@+id/layout_body" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/login" android:orientation="vertical"&gt; ...... &lt;/LinearLayout&gt; &lt;View android:layout_width="fill_parent" android:layout_height="0dip" android:layout_weight="1" /&gt; &lt;AnyLayout (you choose) android:id="@+id/layout_banner" android:layout_width="fill_parent" android:layout_height="wrap_content" &gt; .... &lt;/AnyLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>Or you can set the whole inside a RelativeLayout</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layout_home" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/background"&gt; &lt;LinearLayout android:id="@+id/layout_body" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/login" android:orientation="vertical"&gt; ...... &lt;/LinearLayout&gt; &lt;AnyLayout (you choose) android:id="@+id/layout_banner" android:layout_alignParentBottom="true" android:layout_width="fill_parent" android:layout_height="wrap_content" &gt; .... &lt;/AnyLayout&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