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);
Add Comment
Please, Sign In to add comment