-
public abstract class YogaConfigJNIBase extends YogaConfig
-
-
Method Summary
Modifier and Type Method Description voidsetExperimentalFeatureEnabled(YogaExperimentalFeature feature, boolean enabled)voidsetUseWebDefaults(boolean useWebDefaults)voidsetPrintTreeFlag(boolean enable)voidsetPointScaleFactor(float pixelsInPoint)voidsetUseLegacyStretchBehaviour(boolean useLegacyStretchBehaviour)Yoga previously had an error where containers would take the maximum space possible instead of the minimumlike they are supposed to. 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 voidsetLogger(YogaLogger logger)YogaLoggergetLogger()-
-
Method Detail
-
setExperimentalFeatureEnabled
void setExperimentalFeatureEnabled(YogaExperimentalFeature feature, boolean enabled)
-
setUseWebDefaults
void setUseWebDefaults(boolean useWebDefaults)
-
setPrintTreeFlag
void setPrintTreeFlag(boolean enable)
-
setPointScaleFactor
void setPointScaleFactor(float pixelsInPoint)
-
setUseLegacyStretchBehaviour
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
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
void setLogger(YogaLogger logger)
-
getLogger
YogaLogger getLogger()
-
-
-
-