title: Floating Action Button layout_margin(Bottom) has no effect on bottom margin
body: <p>I am testing on an Android 6.0.1 device and the problem is that my FAB only reacts to layout_marginRight and not layout_marginBottom no matter which value I am using.</p>
  
  <p>Here is my layout:</p>
  
  <pre><code>&lt;RelativeLayout 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;ScrollView
      android:id="@+id/scrollViewUnitNames"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_centerInParent="true"
      android:layout_margin="16dp"
      android:fillViewport="true"&gt;&lt;!----&gt;&lt;/ScrollView&gt;
  
  &lt;android.support.design.widget.FloatingActionButton
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentRight="true"
      android:layout_alignParentBottom="true"
      android:layout_margin="@dimen/fab_margin"
      android:clickable="true"
      android:id="@+id/fab"
      android:src="@android:drawable/ic_dialog_email"
      app:fabSize="normal"
      app:borderWidth="0dp"
      /&gt;      &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>So if I align the FAB to the top left or top right corner, the margin works.
  If I align it to the Bottom left or right corner, layout_marginBottom seems to have no effect.
  I am using the design support library 23.2.0.
  I tested it on an Android 4.0.3 emulator and it worked.
  Do you have any ideas how to fix this? Thanks!</p>
  
  <p><strong>Edit</strong> this is what it looks like:
  <a href="https://i.stack.imgur.com/NFoUx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NFoUx.png" alt="enter image description here"></a></p>
  
  <p><strong>Edit 2</strong>
  I now know a little bit more: on create, I set the content view to an empty layout (only a relative layout inside). After some tests I change the layout like this:</p>
  
  <pre><code>RelativeLayout container = (RelativeLayout) findViewById(R.id.container);
  container.removeAllViews();
  container.addView(getLayoutInflater().inflate(R.layout.my_layout_file, null));
  </code></pre>
  
  <p>In a new project, I did the same and before I changed the layout it worked and after I changed it, it looked the same like on the image above. Is this an uncorrect way to change the layout? Or is there a better method? Thanks for your help.</p>