本文共 344 字,大约阅读时间需要 1 分钟。
前提是:
结果是:并没有圆角的背景
解决:
在构造方法里,setContentView后面设置:
super(context);setContentView(R.layout.dialog_test);getDelegate().findViewById(android.support.design.R.id.design_bottom_sheet) .setBackgroundColor( getContext().getResources().getColor(android.R.color.transparent));
所示。
转载地址:http://vsvcz.baihongyu.com/