Positioning of Floating Action Button
<p>Is it possible to set the position of a fab from the code?</p>

<p>For example I have these 2 fabs:</p>

<pre><code>FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
FloatingActionButton editFab = (FloatingActionButton) findViewById(R.id.editFab);
</code></pre>

<p>"fab" is the default fab, that comes as example after I  create a blank activity and editFab is my fab</p>

<pre><code>&lt;android.support.design.widget.FloatingActionButton
        android:id="@+id/editFab"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        android:layout_margin="16dp"
        android:clickable="true"
         /&gt;
</code></pre>

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

<p>Is it possible to position "editFab" above the "fab" button from the code? Or I have to do it in the xml layout?</p>