menuDialog = new AlertDialog.Builder(this).create();
WindowManager.LayoutParams lp = menuDialog.getWindow().getAttributes();
lp.alpha = 0.9f; //设置了对话框的透明度
lp.dimAmount = 0.5f;
lp.y = 35; //对话框的显示位置
menuDialog.getWindow().setAttributes(lp)
menuDialog
最新推荐文章于 2019-11-23 17:32:57 发布