public abstract class YogaConfig extends Object
Modifier and Type | Field and Description |
---|---|
static int |
SPACING_TYPE |
Constructor and Description |
---|
YogaConfig() |
Modifier and Type | Method and Description |
---|---|
abstract YogaLogger |
getLogger() |
abstract void |
setExperimentalFeatureEnabled(YogaExperimentalFeature feature,
boolean enabled) |
abstract void |
setLogger(YogaLogger logger) |
abstract void |
setPointScaleFactor(float pixelsInPoint) |
abstract void |
setPrintTreeFlag(boolean enable) |
abstract 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
|
abstract 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.
|
abstract void |
setUseWebDefaults(boolean useWebDefaults) |
public abstract void setExperimentalFeatureEnabled(YogaExperimentalFeature feature, boolean enabled)
public abstract void setUseWebDefaults(boolean useWebDefaults)
public abstract void setPrintTreeFlag(boolean enable)
public abstract void setPointScaleFactor(float pixelsInPoint)
public abstract void setUseLegacyStretchBehaviour(boolean useLegacyStretchBehaviour)
public abstract void setShouldDiffLayoutWithoutLegacyStretchBehaviour(boolean shouldDiffLayoutWithoutLegacyStretchBehaviour)
public abstract void setLogger(YogaLogger logger)
public abstract YogaLogger getLogger()