Revision 7ebd72f7
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/main/RubikActivity.java | ||
---|---|---|
49 | 49 |
public static final float BUTTON_TEXT_SIZE = 0.05f; |
50 | 50 |
public static final float TITLE_TEXT_SIZE = 0.06f; |
51 | 51 |
public static final float BITMAP_TEXT_SIZE = 0.09f; |
52 |
public static final float MENU_TEXT_SIZE = 0.04f; |
|
52 | 53 |
|
53 | 54 |
private boolean mJustStarted; |
54 | 55 |
private FirebaseAnalytics mFirebaseAnalytics; |
... | ... | |
69 | 70 |
DisplayMetrics displaymetrics = new DisplayMetrics(); |
70 | 71 |
getWindowManager().getDefaultDisplay().getMetrics(displaymetrics); |
71 | 72 |
mScreenWidth=displaymetrics.widthPixels; |
72 |
|
|
73 |
android.util.Log.e("act", "screenWidth="+mScreenWidth); |
|
74 | 73 |
} |
75 | 74 |
|
76 | 75 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Improvements to the UI - make it proportional regardless of the physical screen size. (Part 3)