I have a problem with the fragment dialog box, if the phone is in portrait mode, everything is fine, the dialogue is almost in full screen mode, but when I turn my phone around, large gaps appear on the sides of the landscape. can this problem be solved?

I call it
getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);
To get rid of the name DIalogFragment. I am using Linear Layout.
source share