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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea2f3d-1c15.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea2f3d-1c15.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?