@null
true
true
true
false
#FFFFFF
Dialog dialog = new Dialog(Activity.this, R.style.mydialog);
dialog.setContentView(R.layout.layout);
LayoutParams lay = dialog.getWindow().getAttributes();
setParams(lay);
dialog.show();
private void setParams(LayoutParams lay) {
DisplayMetrics dm = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(dm);
Rect rect = new Rect();
View view = getWindow().getDecorView();
view.getWindowVisibleDisplayFrame(rect);
lay.height = dm.heightPixels - rect.top;
lay.width = dm.widthPixels;
}