Screen class provides utilities for working with screen coordinates, including conversion between absolute and normalized coordinates and bounds checking.
Accessing the Screen
Every phone has ascreen property:
Screen Properties
| Property | Type | Description |
|---|---|---|
width | int | Screen width in pixels |
height | int | Screen height in pixels |
center | Point | Center point of the screen |