Namespaces
layout
Utility module related to layout.
Utility module related to layout.
Variables
| Variable | Description |
|---|---|
| AT_MOST | - |
| EXACTLY | - |
| MEASURED_HEIGHT_STATE_SHIFT | - |
| MEASURED_SIZE_MASK | - |
| MEASURED_STATE_MASK | - |
| MEASURED_STATE_TOO_SMALL | - |
| MODE_MASK | - |
| MODE_SHIFT | Bits that provide the actual measured size. |
| UNSPECIFIED | - |
Functions
| Function | Description |
|---|---|
| getDisplayDensity | Gets display density for the current device. |
| getMeasureSpecMode | Gets measure specification mode from a given specification. |
| getMeasureSpecSize | Gets measure specification size from a given specification. |
| getMode | Gets layout mode from a given specification as string. |
| hasRtlSupport | Checks whether application has RTL support. |
| makeMeasureSpec | Creates measure specification size from size and mode. |
| measureNativeView | Converts device pixels to device independent pixes and measure the nativeView. Returns the desired size of the nativeView in device pixels. |
| measureSpecToString | Prints user friendly version of the measureSpec. |
| round | Rounds value used in layout. |
| toDeviceIndependentPixels | Convert device pixels to device independent pixels - px to dip. |
| toDevicePixels | Convert device independent pixels to device pixels - dip to px. |