Android Cannot anchor FAB button to BottomSheet
I'm trying to attach a FAB button to the BottomSheet view like Google Maps does. However I cannot make it work, this is the code of the FAB button: <android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="@dimen/fab_margin" android:src="@android:drawable/ic_dialog_email" app:layout_anchor="@+id/nestedscrollview" --> BottomSheet view ID app:layout_anchorGravity="bottom|end" app:elevation="4dp" /> and this is the code of the BottomSheet View <android.support.v4.widget.NestedScrollView