1.设置background为透明
<style name="BottomSheetDialog" parent="Theme.Design.Light.BottomSheetDialog">
<item name="bottomSheetStyle">@style/bottomSheetStyleWrapper</item>
</style>
<style name="bottomSheetStyleWrapper" parent="Widget.Design.BottomSheet.Modal">
<item name="android:background">@android:color/transparent</item>
</style>
2.应用样式
BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(ShortFilmEditMainActivity.this,R.style.BottomSheetDialog);
bottomSheetDialog.setContentView(R.layout.bottom_sheet_music);
bottomSheetDialog.show();
---- 实测有效