How to set the fixed position for floating action button above very long listview in Android?
<p>I am developing an Android app that is mostly working with <code>listview</code>. But I am having a problem using <code>Floating Action Button</code> together with <code>Long ListView</code>. My problem is as below.</p>

<p>When the list view is only has a few item. <code>Floating item</code> can be seen. </p>

<p>This is the screenshot:</p>

<p><a href="https://i.stack.imgur.com/uyhhQ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/uyhhQ.png" alt="enter image description here"></a></p>

<p>As you can see above, <code>Floating Action Button</code> is still can be seen.But when <code>ListView</code> has so many items and become excessive to the screen, <code>Floating Action Button</code> cannot been seen.</p>

<p>This is the screenshot of <code>Long Listview</code></p>

<p><a href="https://i.stack.imgur.com/2mC0n.png" rel="noreferrer"><img src="https://i.stack.imgur.com/2mC0n.png" alt="enter image description here"></a></p>

<p>For the second screen shot, it cannot be <code>scrolled down</code> any more.</p>

<p>What I want to achieve is, I want the floating bottom always at the bottom right of screen above <code>Listview</code>. Like fixed position in <code>HTML</code> and <code>CSS</code>.</p>

<p>I want <code>Floating Action Button</code> always here no matter how tall the <code>Listview</code> is</p>

<p><a href="https://i.stack.imgur.com/ms1wB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ms1wB.png" alt="enter image description here"></a></p>

<p>This is my layout file</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="match_parent"
    android:layout_height="match_parent"&gt;
        &lt;ListView
            android:dividerHeight="@dimen/list_item_divider_height"
            android:padding="@dimen/list_padding"
            android:divider="@color/whitesmoke"
            android:id="@+id/listview_podcast_list"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"&gt;&lt;/ListView&gt;

        &lt;TextView
            android:textSize="17dp"
            android:textStyle="bold"
            android:textColor="@color/black"
            android:textAlignment="center"
            android:id="@+id/tf_no_records"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" /&gt;

    &lt;android.support.design.widget.FloatingActionButton
        android:id="@+id/stop_podcast_button"
        android:background="@color/colorPrimary"
        android:src="@android:drawable/ic_dialog_email"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|end"/&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>How can I fix my code to achieve it?</p>