Putting an ImageButton below a ScrollView in android layout activity
<p>I am trying to put this image button at the bottom of the screen, but nothing appears. above it is the ScrollView text. How can I put this imagebutton below it ? Thanks.</p>

<pre><code>        &lt;ImageButton
            android:layout_width="60dp"
            android:layout_height="60dp"
            android:id="@+id/btn_SKMM"
            android:src="@drawable/skmmlogo"
            android:adjustViewBounds="true"
            android:scaleType="fitCenter" /&gt;
</code></pre>

<p>Here is my activity layout xml file, you can check btn_SKMM is at the last LinearLayout but that didnt appear on the device.</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"&gt;

    &lt;LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/colorPrimary"
        android:orientation="vertical"&gt;

        &lt;LinearLayout
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"&gt;

            &lt;TextView
                android:id="@+id/txt_ActionTitle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Privacy Policy"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:textColor="#ffffff"
                android:textSize="20sp"
                android:textStyle="bold"
                android:gravity="left"
                android:layout_weight="1"
                android:layout_gravity="center|left"
                android:layout_margin="15sp" /&gt;

            &lt;Button
                android:layout_width="50sp"
                android:layout_height="match_parent"
                android:text=""
                android:id="@+id/btn_Close"
                android:background="@color/colorPrimary"
                style="?android:attr/borderlessButtonStyle"
                android:layout_gravity="right"
                android:textColor="#FFFFFF"
                android:textSize="25sp" /&gt;
        &lt;/LinearLayout&gt;

        &lt;LinearLayout
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_alignParentTop="true"
            android:layout_centerHorizontal="true"
            android:background="#FFFFFF"&gt;

            &lt;ScrollView android:id="@+id/textAreaScroller"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_x="0px"
                android:layout_y="25dp"
                android:scrollbars="vertical"
                android:layout_margin="10sp"&gt;
                &lt;TextView
                    android:id="@+id/textView1"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_alignLeft="@+id/fbedittext"
                    android:layout_alignParentRight="true"
                    android:layout_below="@+id/fbedittext"
                    android:text="" /&gt;
            &lt;/ScrollView&gt;

        &lt;/LinearLayout&gt;

        &lt;LinearLayout
            android:orientation="vertical"
            android:layout_width="wrap_content"
            android:layout_height="60dp"
            android:layout_marginLeft="20sp"
            android:gravity="center_horizontal" &gt;

            &lt;ImageButton
                android:layout_width="60dp"
                android:layout_height="60dp"
                android:id="@+id/btn_SKMM"
                android:src="@drawable/skmmlogo"
                android:adjustViewBounds="true"
                android:scaleType="fitCenter" /&gt;

        &lt;/LinearLayout&gt;

    &lt;/LinearLayout&gt;


&lt;/android.support.design.widget.CoordinatorLayout&gt;
</code></pre>

<p>UPDATE: this seems to fix it, just additional if can help, trying to put the text(txt_sometext) next to imagebutton(btn_SKMM), the text(txt_sometext) doesnt appear. Thanks</p>

<pre><code>    &lt;LinearLayout
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true"
        android:background="#FFFFFF"&gt;

        &lt;ScrollView android:id="@+id/textAreaScroller"
            android:layout_width="match_parent"
            android:layout_height="0dip"
            android:layout_weight="1"
            android:layout_x="0px"
            android:layout_y="25dp"
            android:scrollbars="vertical"
            android:layout_margin="10sp"&gt;
            &lt;TextView
                android:id="@+id/textView1"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_alignLeft="@+id/fbedittext"
                android:layout_alignParentRight="true"
                android:layout_below="@+id/fbedittext"
                android:text="" /&gt;
        &lt;/ScrollView&gt;

        &lt;LinearLayout
            android:orientation="horizontal"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="20sp"
            android:gravity="center_horizontal" &gt;

            &lt;ImageButton
                android:layout_width="60dp"
                android:layout_height="60dp"
                android:id="@+id/btn_SKMM"
                android:src="@drawable/skmmlogo"
                android:adjustViewBounds="true"
                android:layout_gravity="left"
                android:scaleType="fitCenter" /&gt;

            &lt;TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textAppearance="?android:attr/textAppearanceSmall"
                android:text="sometext"
                android:id="@+id/txt_sometext"
                android:layout_gravity="right"
                android:textColor="#ffffff" /&gt;

        &lt;/LinearLayout&gt;

    &lt;/LinearLayout&gt;
</code></pre>