android window

 

quit.show();                        
WindowManager.LayoutParams params0 = quit.getWindow().getAttributes();
params0.width = (int) (scrrenW*0.9);   
params0.height = (int) (screenH*0.25); 
quit.getWindow().setAttributes(params0);

quit是个dialog;

screenW是屏幕宽度;

你可能感兴趣的:(android window)