-
public abstract class YogaConfig
-
-
Field Summary
Fields Modifier and Type Field Description public static intSPACING_TYPE
-
Method Summary
Modifier and Type Method Description abstract voidsetExperimentalFeatureEnabled(YogaExperimentalFeature feature, boolean enabled)abstract voidsetUseWebDefaults(boolean useWebDefaults)abstract voidsetPrintTreeFlag(boolean enable)abstract voidsetPointScaleFactor(float pixelsInPoint)abstract voidsetUseLegacyStretchBehaviour(boolean useLegacyStretchBehaviour)Yoga previously had an error where containers would take the maximum space possible instead of the minimumlike they are supposed to. abstract voidsetShouldDiffLayoutWithoutLegacyStretchBehaviour(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 voidsetLogger(YogaLogger logger)abstract YogaLoggergetLogger()-
-
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()
-
-
-
-