Android bottom sheet layout margin
<p>how to set margin to bottom sheet in a fragment ?</p>

<p>i have a linear layout at bottom of fragment and now i want to expand bottom sheet from top of that linear layout</p>

<p><code>android:layout_marginBottom="36dp"</code> not works and bottom sheet covers linear layout.</p>

<p>here is my code :</p>

<pre><code>&lt;LinearLayout
    android:layout_width="match_parent"
    android:layout_height="36dp"
    android:background="@drawable/shadow"
    android:layout_gravity="bottom"&gt;

    &lt;ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@mipmap/ic_add_white_24dp" /&gt;
&lt;/LinearLayout&gt;

&lt;LinearLayout
    android:id="@+id/bottom_sheet"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="#ff0000"
    app:behavior_hideable="true"
    app:layout_behavior="android.support.design.widget.BottomSheetBehavior"
    android:layout_marginBottom="36dp"&gt;

    &lt;Button
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Test" /&gt;

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