就是要去掉自定义对话框中那黑色的背景和边框 style里加一行<item name="android:windowBackground">@android:color/transparent</item>就ok了。