a guest Jan 18th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- DisplayMetrics metrics = getResources().getDisplayMetrics();
- int width = metrics.widthPixels;
- int height = metrics.heightPixels;
- dialog.getWindow().setLayout((6 * width) / 7, (9 * height) / 10);
RAW Paste Data