这是我的课程:
public class RoundedBottomSheetDialogFragment extends BottomSheetDialogFragment {
@Override
public int getTheme () {
return R.style.BottomSheetDialogTheme;
}
@Override
public BottomSheetDialog onCreateDialog (Bundle savedinstance) {
BottomSheetDialog dialog = new BottomSheetDialog(getActivity(), R.style.BottomSheetDialogTheme);
return dialog;
}
}
为什么我的bottomSheetDialog的屏幕底部有一些多余的边距,而不适合显示的屏幕底部?
答案 0 :(得分:0)
我的问题是这一行: getDialog()。getWindow()。setLayout(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.WRAP_CONTENT);