自定义dialog样式
<?xml version="1.0" encoding="utf-8"?><resources><style name="CustomDialogTheme" parent="@android:style/Theme.Dialog"><item name="android:windowBackground">@color/transparent_white</item><item name="android:windowIsFloating">false</item><item name="android:windowNoTitle">true</item></style></resources>
这里面呢如果windowIsFloating是false,那么就是设置自己的颜色 ,就需要在windowBackground
设置自己所要展示的。
myDialog = new Dialog(this, R.style.CustomDialogTheme);构造自己定义的就可以了