-
public abstract class YogaConfigJNIBase extends YogaConfig
-
-
Method Summary
Modifier and Type Method Description void
setExperimentalFeatureEnabled(YogaExperimentalFeature feature, boolean enabled)
void
setUseWebDefaults(boolean useWebDefaults)
void
setPrintTreeFlag(boolean enable)
void
setPointScaleFactor(float pixelsInPoint)
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. 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 void
setLogger(YogaLogger logger)
YogaLogger
getLogger()
-
-
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()
-
-
-
-