1 <?xml version="1.0" encoding="utf-8"?>
2 <resources>
3 <style name="style1" parent="@android:style/Theme.Dialog">
4 <item name="android:windowFrame">@null</item>
5 <item name="android:windowIsFloating">true</item>
6 <item name="android:windowIsTranslucent">false</item>
7 <item name="android:windowNoTitle">true</item>
8 <item name="android:background">@android:color/black</item>
9 <item name="android:windowBackground">@null</item>
10 <item name="android:backgroundDimEnabled">false</item>
11 </style>
12 </resources>
1 Dialog dialog = new Dialog(ProgressDialogDemo.this,R.style.style1);
2 dialog.setContentView(R.layout.progressdialog);
3 dialog.show();