How to realize the contraction and folding of BottomSheetDialogFragment?

how can I use android.support.design.widget.BottomSheetDialogFragment
to set a peekHEIGHT, similar to BottomSheetBehavior to achieve a collapsed state?

two main problems:
1. Achieve a folded state, rather than simply disappear after sliding.
2. When Bottom Sheet Dialog appears, undarken the background (it darkens by default).

expand:
CPcQrF.png
https://s1.ax1x.com/2018/04/0...
:
CPcYP1.png
https://s1.ax1x.com/2018/04/0.

Mar.01,2021
Menu