CodePudding user response:
Please remove this line:-
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
From your Frame Layout and place this line in you parent layout CoordinatorLayout
I hope this will help you!!