So here is my onCreateView method:

```
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);
  View view = inflater.inflate(R.layout.my_view, container, false);
  ...
  return view;
}

```

And the layout itself is a LinearLayout with 

```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"

```

For some reason, after adding the line `getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);` the dialog shrunk to wrap the contents; in fact, one of the TextViews is forced to wrap its one line into two lines.
I want the Dialog to fill the width of the screen, save some margin that I specify.