android - How to set fixed width and height in an alertBox? -
i have alertbox
alertdialog = new alertdialog.builder(instructions.this); layoutinflater inflater = this.getlayoutinflater(); view view = inflater.inflate(r.layout.alert_dialog_layout, null); alertdialog.setview(view); final alertdialog newdialog = alertdialog.create();
i try this:
newdialog.getwindow().setlayout(width, height);
it not work!
what have do? thanks
you have use line :
alertdialog.getwindow().setlayout(width, height);
after alertdialog.close
line , not before.
hope helps.
Comments
Post a Comment