title: Android DialogFragment is blank
body: <p>I have a problem with creating a dialog. It does appear, but its empty inside, just a blank box is shown. </p>
  
  <p>Dialog class:</p>
  
  <pre><code>public class SomeDialog extends DialogFragment{
  
  @Override
  public Dialog onCreateDialog(Bundle savedInstanceState) {
      AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
      LayoutInflater inflater = getActivity().getLayoutInflater();
  
      builder.setView(inflater.inflate(R.layout.somelayout, null));
  
      return super.onCreateDialog(savedInstanceState);
  }
  }
  </code></pre>
  
  <p>In an activity, creating an object and calling show method:</p>
  
  <pre><code>SomeDialog obj = new SomeDialog();
  obj.show(getFragmentManager(), "randomtag");
  </code></pre>