-
public abstract class YogaConfig
-
-
Field Summary
Fields Modifier and Type Field Description public static int
SPACING_TYPE
-
Method Summary
Modifier and Type Method Description abstract void
setExperimentalFeatureEnabled(YogaExperimentalFeature feature, boolean enabled)
abstract void
setUseWebDefaults(boolean useWebDefaults)
abstract void
setPrintTreeFlag(boolean enable)
abstract void
setPointScaleFactor(float pixelsInPoint)
abstract void
setUseLegacyStretchBehaviour(boolean useLegacyStretchBehaviour)
Yoga previously had an error where containers would take the maximum space possible instead of the minimumlike they are supposed to. abstract void
setShouldDiffLayoutWithoutLegacyStretchBehaviour(boolean shouldDiffLayoutWithoutLegacyStretchBehaviour)
If this flag is set then yoga would diff the layout without legacy flag and would set a bool inYogaNode(mDoesLegacyStretchFlagAffectsLayout) with true if the layouts were different and falseif not abstract void
setLogger(YogaLogger logger)
abstract YogaLogger
getLogger()
-
-
Method Detail
-
setExperimentalFeatureEnabled
abstract void setExperimentalFeatureEnabled(YogaExperimentalFeature feature, boolean enabled)
-
setUseWebDefaults
abstract void setUseWebDefaults(boolean useWebDefaults)
-
setPrintTreeFlag
abstract void setPrintTreeFlag(boolean enable)
-
setPointScaleFactor
abstract void setPointScaleFactor(float pixelsInPoint)
-
setUseLegacyStretchBehaviour
abstract void setUseLegacyStretchBehaviour(boolean useLegacyStretchBehaviour)
Yoga previously had an error where containers would take the maximum space possible instead of the minimumlike they are supposed to. In practice this resulted in implicit behaviour similar to align-self: stretch;Because this was such a long-standing bug we must allow legacy users to switch back to this behaviour.
-
setShouldDiffLayoutWithoutLegacyStretchBehaviour
abstract void setShouldDiffLayoutWithoutLegacyStretchBehaviour(boolean shouldDiffLayoutWithoutLegacyStretchBehaviour)
If this flag is set then yoga would diff the layout without legacy flag and would set a bool inYogaNode(mDoesLegacyStretchFlagAffectsLayout) with true if the layouts were different and falseif not
-
setLogger
abstract void setLogger(YogaLogger logger)
-
getLogger
abstract YogaLogger getLogger()
-
-
-
-