Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Take a <code>RelativeLayout</code> and set the background using <code>android:background</code>.</p> <p>Now to put buttons at bottom part, take a <code>LinearLayout</code> and take 2 image buttons inside the same. Mention <strong><code>android:width="0dp"</code></strong> and <strong><code>android:layout_weight="1dp"</code></strong> to both the buttons.</p> <p>Exact XML layout that you want:</p> <pre><code>&lt;RelativeLayout android:id="@+id/scrollView1" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:background="@drawable/round_red"&gt; &lt;LinearLayout android:id="@+id/layout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true"&gt; &lt;ImageButton android:id="@+id/button1" android:layout_width="0dip" android:layout_height="wrap_content" android:src="@drawable/icon" android:layout_weight="1"&gt; &lt;/ImageButton&gt; &lt;ImageButton android:id="@+id/button2" android:layout_width="0dip" android:layout_height="wrap_content" android:src="@drawable/icon" android:layout_weight="1"&gt; &lt;/ImageButton&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; </code></pre> <h2>Update:</h2> <p><strong>Why I suggest to use RelativeLayout?</strong> I suggest to you to use RelativeLayout as you can adjust and display the views based on the Relative position of the parent/child views. If you are confident enough then you don't have to take more sub-layout while designing UI in android using <code>RelativeLayout</code>.</p>
    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. VO
      singulars
      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