public abstract class YogaConfigJNIBase extends YogaConfig
SPACING_TYPE
Modifier and Type | Method and Description |
---|---|
YogaLogger |
getLogger() |
void |
setExperimentalFeatureEnabled(YogaExperimentalFeature feature,
boolean enabled) |
void |
setLogger(YogaLogger logger) |
void |
setPointScaleFactor(float pixelsInPoint) |
void |
setPrintTreeFlag(boolean enable) |
void |
setShouldDiffLayoutWithoutLegacyStretchBehaviour(boolean shouldDiffLayoutWithoutLegacyStretchBehaviour)
If this flag is set then yoga would diff the layout without legacy flag and would set a bool in
YogaNode(mDoesLegacyStretchFlagAffectsLayout) with true if the layouts were different and false
if not
|
void |
setUseLegacyStretchBehaviour(boolean useLegacyStretchBehaviour)
Yoga previously had an error where containers would take the maximum space possible instead of the minimum
like they are supposed to.
|
void |
setUseWebDefaults(boolean useWebDefaults) |
public void setExperimentalFeatureEnabled(YogaExperimentalFeature feature, boolean enabled)
setExperimentalFeatureEnabled
in class YogaConfig
public void setUseWebDefaults(boolean useWebDefaults)
setUseWebDefaults
in class YogaConfig
public void setPrintTreeFlag(boolean enable)
setPrintTreeFlag
in class YogaConfig
public void setPointScaleFactor(float pixelsInPoint)
setPointScaleFactor
in class YogaConfig
public void setUseLegacyStretchBehaviour(boolean useLegacyStretchBehaviour)
setUseLegacyStretchBehaviour
in class YogaConfig
public void setShouldDiffLayoutWithoutLegacyStretchBehaviour(boolean shouldDiffLayoutWithoutLegacyStretchBehaviour)
setShouldDiffLayoutWithoutLegacyStretchBehaviour
in class YogaConfig
public void setLogger(YogaLogger logger)
setLogger
in class YogaConfig
public YogaLogger getLogger()
getLogger
in class YogaConfig