Android custom style not showing on a LinearLayout
<p>Created a custom Dialog and am trying to apply a drop shadow to it.  Created a style like so:</p>

<pre><code>&lt;style name="Dialog"
    parent="@android:style/Theme.Dialog"&gt;
    &lt;item name="android:windowBackground"&gt;@null&lt;/item&gt;
    &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
    &lt;item name="android:windowIsFloating"&gt;true&lt;/item&gt;
    &lt;item name="android:shadowColor"&gt;#FF000000&lt;/item&gt;
    &lt;item name="android:shadowDx"&gt;10&lt;/item&gt;
    &lt;item name="android:shadowDy"&gt;10&lt;/item&gt;
    &lt;item name="android:shadowRadius"&gt;10&lt;/item&gt;
  &lt;/style&gt;
</code></pre>

<p>Applied the style to my layout like so:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- custom dialog --&gt;
&lt;LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/layout_root"
  android:orientation="vertical"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:gravity="center"
  android:background="@color/grey"
  style="@style/Dialog"&gt;
...
</code></pre>

<p>Also to note, I'm creating my custom dialog this way:</p>

<pre><code>public CustomDialog create() {
            Typeface tf = Typeface.createFromAsset(context.getAssets(), "fonts/IMPACT.TTF");

            LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
            // instantiate the dialog with the custom Theme
            final CustomDialog dialog = new CustomDialog(context, R.style.Dialog);

            View layout = inflater.inflate(R.layout.custom_dialog, null);
            dialog.addContentView(layout, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
            dialog.setContentView(layout);

            TextView text = (TextView) layout.findViewById(R.id.text);
            text.setTypeface(tf);
            text.setText("Add this game to your cal, or share it on Facebook.");

            return dialog;
        }
</code></pre>

<p>Which makes me wonder why I even have to set the style attribute in my layout xml, when I'm already setting this style via this line:</p>

<pre><code>final CustomDialog dialog = new CustomDialog(context, R.style.Dialog);
</code></pre>

<p>Can someone give me advice on why this is not showing?  Thanks!</p>
