在show后面加上:
WindowManager.LayoutParams lp = dlgPayment.getWindow().getAttributes();
lp.width = LayoutParams.MATCH_PARENT;
lp.height = LayoutParams.MATCH_PARENT;
dlgPayment.getWindow().setAttributes(lp);
在show后面加上:
WindowManager.LayoutParams lp = dlgPayment.getWindow().getAttributes();
lp.width = LayoutParams.MATCH_PARENT;
lp.height = LayoutParams.MATCH_PARENT;
dlgPayment.getWindow().setAttributes(lp);