Layouts are now implemented natively for Android.

This commit is contained in:
hshristov
2015-07-16 01:22:16 +03:00
parent 5a06731daa
commit 0ad198165c
45 changed files with 1727 additions and 1187 deletions

View File

@@ -26,9 +26,4 @@ export function greaterThanZero(value: Object): boolean {
export function notNegative(value: Object): boolean {
return (<number>value) >= 0;
}
export function isFiniteNumber(value: Object): boolean {
var num = <number>value;
return isFinite(num);
}
}

View File

@@ -31,6 +31,7 @@ export module layout {
export var MEASURED_STATE_TOO_SMALL = 0x01000000;
export var MEASURED_STATE_MASK = 0xff000000;
export var MEASURED_SIZE_MASK = 0x00ffffff;
export function getMode(mode: number): string {
switch (mode) {

4
utils/utils.d.ts vendored
View File

@@ -8,6 +8,10 @@
* Utility module related to layout.
*/
module layout {
/**
* Bits that provide the actual measured size.
*/
export var MEASURED_SIZE_MASK: number;
export var MEASURED_STATE_MASK: number;
export var MEASURED_STATE_TOO_SMALL: number;
export var UNSPECIFIED: number;