Helper methods for computing scaled sizes for screen compatibility mode
Definition at line 23 of file ScreenDensityUtil.java.
◆ computeCompatibleScaling()
static float com.google.appinventor.components.runtime.util.ScreenDensityUtil.computeCompatibleScaling |
( |
Context |
context | ) |
|
|
static |
Compute the scaling for applications runs under compatibility mode. This code is partially taken from CompatibilityInfo.java from the Android 5.0 source
- Parameters
-
context | Context in the screen to get the density of |
- Returns
- Returns the scaling factor for the window.
Definition at line 43 of file ScreenDensityUtil.java.
◆ DEFAULT_NORMAL_SHORT_DIMENSION
final int com.google.appinventor.components.runtime.util.ScreenDensityUtil.DEFAULT_NORMAL_SHORT_DIMENSION = 320 |
|
static |
◆ MAXIMUM_ASPECT_RATIO
final float com.google.appinventor.components.runtime.util.ScreenDensityUtil.MAXIMUM_ASPECT_RATIO = (854f/480f) |
|
static |
The documentation for this class was generated from the following file:
- C:/Users/Ulli/appinventor-sources/appinventor/components/src/com/google/appinventor/components/runtime/util/ScreenDensityUtil.java