title: Android: Custom AlertDialog
body: <p>I have created a custom alertdialog by the following code:</p>
  
  <pre><code>AlertDialog.Builder builder;
  AlertDialog alertDialog;
  
  LayoutInflater inflater = (LayoutInflater)ActivityName.this.getSystemService(LAYOUT_INFLATER_SERVICE);
  View layout = inflater.inflate(R.layout.custom_layout,(ViewGroup)findViewById(R.id.layout_root));
  
                  builder = new AlertDialog.Builder(getParent());
                  builder.setView(layout);
                  alertDialog = builder.create();
                  alertDialog.show();
  </code></pre>
  
  <p>Problem is the pop up is surrounded with the default Dialog background having a own void space of a title(as the title is not set). How do i remove this. I have tried putting custom style through <code>ContextThemeWrapper</code> like 
  <code>builder = new AlertDialog.Builder(new ContextThemeWrapper(getParent(), R.style.CustomDialogTheme));</code></p>
  
  <p>But its not working. How do i do that?!!! Thanks in Advance.
  Custom style xml is given below:</p>
  
  <pre><code>&lt;style name="CustomDialogTheme" parent="android:style/Theme.Dialog.Alert"&gt;
              &lt;item name="android:windowIsFloating"&gt;false&lt;/item&gt;
              &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
          &lt;/style&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/VlUu4.png" alt="This is the output on the emulator"></p>