title: How to make DialogFragment modal?
body: <p>I have a DialogFragment :</p>
  
  <pre><code>public static class CharacteristicDialog extends DialogFragment {
          int mNum;
  
          static CharacteristicDialog newInstance(int num) {
              CharacteristicDialog f = new CharacteristicDialog();            
              Bundle args = new Bundle();
              args.putInt("num", num);
              f.setArguments(args);
              return f;
          }
  
          @Override
          public void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              mNum = getArguments().getInt("num");
              setStyle(STYLE_NO_INPUT, 0);        
          }
  
          @Override
          public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
              View v = inflater.inflate(R.layout.characteristic_dialog, container, false);
              v.setOnClickListener(new OnClickListener() {                
              @Override
              public void onClick(View v) {
                  dismiss();
              }
          });
      }
  </code></pre>
  
  <p>I create it in my main Fragment like this :</p>
  
  <pre><code>        DialogFragment newFragment = CharacteristicDialog.newInstance(v.getId());
          newFragment.setShowsDialog(true);
          newFragment.show(getFragmentManager(), "dialog");   
  </code></pre>
  
  <p>It shows well, but it is not modal (I can click on the sides and make actions on my main Fragment behind the dialog).</p>
  
  <p>How do I make it modal ?</p>
  
  <p>Thanks</p>