Classes
ViewHelper
ViewHelper
Summary β
Constructors
Constructors β
constructor β
new ViewHelper(): ViewHelper
Returns ViewHelper
Methods β
combineMeasuredStates β
Static
Parameter Default Description
curState
number
newState
any
Returns number
layoutChild β
Static
measureChild β
Static
resolveSizeAndState β
Static
resolveSizeAndState(
size: number,
specSize: number,
specMode: number,
childMeasuredState: number
): number
Utility to reconcile a desired size and state, with constraints imposed
by a MeasureSpec. Will take the desired size, unless a different size
is imposed by the constraints. The returned value is a compound integer,
with the resolved size in the MEASURED_SIZE_MASK bits and
optionally the bit MEASURED_STATE_TOO_SMALL set if the resulting
size is smaller than the size the view wants to be.
Parameter Default Description
size
number
specSize
number
specMode
number
childMeasuredState
number
Returns number
- Previous
- ViewCommon
- Next
- VirtualArray