title: Dialog layout double layered wrong transparant background
body: <p>I want to make a white, no bordered, popup view. To accomplish this I use a custom dialog with a custom style:</p>
  
  <pre><code>public Builder createNewDialog(int type) {
          AlertDialog.Builder dlg = null;
          switch (type) {
          case (1):
  
              dlg = new AlertDialog.Builder(new ContextThemeWrapper(this,
                      R.style.CustomDialogTheme));
  
              LayoutInflater inflater = this.getLayoutInflater();
  
              dlg.setView(inflater.inflate(R.layout.dialognewplayer, null))
                      .setPositiveButton("Add Player", null).setNegativeButton("Cancel", null).create();
              break;
          }
          return dlg;
      }
  </code></pre>
  
  <p>//styles.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
  
      &lt;style name="AppTheme" parent="android:Theme.Light"&gt;&lt;/style&gt;
      &lt;style name="CustomDialogTheme" parent="android:Theme.Dialog"&gt;
           &lt;item name="android:windowBackground"&gt;@color/transparent_color&lt;/item&gt;
          &lt;item name="android:windowIsFloating"&gt;false&lt;/item&gt;
          &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
          &lt;item name="android:background"&gt;#ffffff&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <p>//and colors.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
         &lt;color name="transparent_color"&gt;#ffffff&lt;/color&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>However, as you can see at the image, the popup has some errors... it appears to be double layered with the first layer still having a border, and the transparant background is still black.. I think I am handling something wrong but I am not seeing it...</p>
  
  <p><img src="https://i.stack.imgur.com/FJMtz.png" alt="enter image description here"></p>