1、自定义样式
2、宽度
/*宽度 max*/
Window window = alertDialog.getWindow();
WindowManager.LayoutParams layoutParams = window.getAttributes();
layoutParams.width = WindowManager.LayoutParams.MATCH_PARENT;
window.setAttributes(layoutParams);
/*在底部显示*/
window.setGravity(Gravity.BOTTOM);