本文实例展示了Android中Dialog去黑边的方法。并且分为保留阴影与不保留阴影两种实现方法。供大家参考借鉴。具体实现方法如下:
1.不保留阴影
代码如下:
- @null
- true
- false
- true
- @color/clarity
- @drawable/clarity
- false
2.保留阴影
代码如下:
- @null
- true
- @null
final Dialog dialog = new Dialog(context, R.style.dialog); dialog.setContentView(view); dialog.show();
希望本文所述代码对大家的Android程序设计有所帮助。



