how to set margin to bottom sheet in a fragment ?
i have a linear layout at bottom of fragment and now i want to expand bottom sheet from top of that linear layout
android:layout_marginBottom="36dp"
not works and bottom sheet covers linear layout.
here is my code :
<LinearLayout
android:layout_width="match_parent"
android:layout_height="36dp"
android:background="@drawable/shadow"
android:layout_gravity="bottom">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/ic_add_white_24dp" />
</LinearLayout>
<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">
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Test" />
</LinearLayout>