Revision 2eb74743
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/dialogs/RubikDialogMain.java | ||
---|---|---|
52 | 52 |
|
53 | 53 |
DisplayMetrics displaymetrics = new DisplayMetrics(); |
54 | 54 |
act.getWindowManager().getDefaultDisplay().getMetrics(displaymetrics); |
55 |
float textSize = displaymetrics.widthPixels * RubikActivity.MENU_TEXT_SIZE; |
|
55 |
float textSize = displaymetrics.widthPixels * RubikActivity.MENU_MEDIUM_TEXT_SIZE;
|
|
56 | 56 |
int buttonSize = (int)(2.5f*textSize); |
57 | 57 |
|
58 | 58 |
Button play = view.findViewById(R.id.rubikPlay); |
Also available in: Unified diff
Improvements to the UI - make it proportional regardless of the physical screen size. (Part 5 - first 3 Dialogs)