I have a problem with BottomSheetDialog and software navigation bar. If I create BottomSheetDialog:
BottomSheetDialog mBottomSheetDialog = new BottomSheetDialog(mContext);
View sheetView = inflater.inflate(R.layout.bottom_sheet_sentence, (ViewGroup)view.getParent(), false);
mBottomSheetDialog.setContentView(sheetView);
mBottomSheetDialog.show();
then on devices with the software navigation bar, the dialog is shown below/under the navigation bar (in this example it's a tablet with Android 7.0, it's not so visible but the second button is below the navigation bar):
How can I add the BottomSheetDialog above the navigation bar?