Android日常--dialog

位置

Window window = dialog.getWindow();

WindowManager.LayoutParams lp = window.getAttributes();

lp.gravity = Gravity.BOTTOM;

lp.width = WindowManager.LayoutParams.MATCH_PARENT;

window.setAttributes(lp);

你可能感兴趣的:(Android日常--dialog)