韩梦飞沙 韩亚飞 313134555@qq.com han_meng_fei_sha yue31313
window =dialog.getWindow();//
得到对话框的窗口.
WindowManager.LayoutParams wl = window.getAttributes();
wl.x = x;//这两句设置了对话框的位置.0为中间
wl.y =y;
wl.width =w;
wl.height =h;
wl.alpha =0.6f;// 这句设置了对话框的透明度