I am creating a dialog for which I don't need a title area so I just disable it inside onCreateView like this:
getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);
The problem with this approach is that after I do this, dialog is not displayed correctly. It doesn't show whole content of the inflated layout and it is really small. If I remove that line of code, dialog is displayed perfectly fine.
What could be causing this problem and how to solve it? Thank you.