Moving Floating Action Button to the Bottom
<p>I have cloned the <a href="https://github.com/chrisbanes/cheesesquare" rel="nofollow">CheeseSquare sample code</a> by <strong>Chris Banes</strong>. While, I have the most recent version of the Support Library and Android Studio, I'm running this code on Nexus 4, Android 4.2.2. </p>

<p>This sample code shows the Floating Action Button twice i.e.  in the <strong>Main Activity</strong> (<code>include_list_viewpager.xml</code>) i.e. in the 3 Tabs, as well as in the <strong>CheeseDetailActivity</strong> (<code>activity_detail.xml</code>)  </p>

<p>In the <strong>Main Activity</strong> (<code>include_list_viewpager.xml</code>) the Floating Action Button is at the bottom and it is described as:</p>

<pre><code>&lt;android.support.design.widget.FloatingActionButton
    android:layout_height="wrap_content"
    android:layout_width="wrap_content"
    app:layout_anchor="@id/appbar"
    android:layout_gravity="end|bottom"
    android:src="@drawable/ic_discuss"
    android:layout_margin="@dimen/fab_margin"
    android:clickable="true"/&gt;
</code></pre>

<p>On the other hand the Floating Action Button is in the middle in <strong>CheeseDetailActivity</strong> (<code>activity_detail.xml</code>). It is described as:</p>

<pre><code>&lt;android.support.design.widget.FloatingActionButton
    android:layout_height="wrap_content"
    android:layout_width="wrap_content"
    app:layout_anchor="@id/appbar"
    app:layout_anchorGravity="bottom|right|end"
    android:src="@drawable/ic_discuss"
    android:layout_margin="@dimen/fab_margin"
    android:clickable="true"/&gt;
</code></pre>

<p>I would like to move the Floating Action Button in the <strong>CheeseDetailActivity</strong> (<code>activity_detail.xml</code>) to the bottom as shown in the <strong>Main Activity</strong> (<code>include_list_viewpager.xml</code>). I tried this by changing the <code>layout_anchorGravity</code> by <code>layout_gravity</code> as shown below:</p>

<pre><code>&lt;android.support.design.widget.FloatingActionButton
    android:layout_height="wrap_content"
    android:layout_width="wrap_content"
    app:layout_anchor="@id/appbar"
    android:layout_gravity="end|bottom"
    android:src="@drawable/ic_discuss"
    android:layout_margin="@dimen/fab_margin"
    android:clickable="true"/&gt;
</code></pre>

<p>I'm curious why the Floating Action Button moves to the top of the screen with my above mentioned modified code? Is there any way to bring it to the bottom?</p>