Android BottomSheetBehavior, how to disable snap?
问题 Standard android BottomSheetBehavior has tree state: hidden, collapsed and expanded. I want to allow user to "leave" bottom sheet between collapsed and expanded. Now, with the default behavior, it will snap to collapsed or expanded based which is closest. How should I disable this snap functionality? 回答1: I will present a way to achievie such functionality for a View extending BottomSheetDialogFragment . Expanding: First of all overrive onResume : @Override public void onResume() { super