public class DimensionValue extends java.lang.Object implements RuntimeValue
RuntimeValue
for dimension properties like x/y/width/height.Modifier and Type | Method and Description |
---|---|
static DimensionValue |
absolute(float value) |
static DimensionValue |
heightPercentageOffset(float value)
Like
offsetPx(float) , but the relative offset is based on a percentage of the mount content
height |
static DimensionValue |
offsetDip(Context context,
int valueDp) |
static DimensionValue |
offsetPx(float value) |
float |
resolve(Resolver resolver,
PropertyHandle propertyHandle)
Uses the given
Resolver to determine the runtime value based on the given ComponentProperty . |
static DimensionValue |
widthPercentageOffset(float value)
Like
offsetPx(float) , but the relative offset is based on a percentage of the mount content
width. |
public static DimensionValue absolute(float value)
public static DimensionValue offsetPx(float value)
public static DimensionValue offsetDip(Context context, int valueDp)
public static DimensionValue widthPercentageOffset(float value)
offsetPx(float)
, but the relative offset is based on a percentage of the mount content
width.public static DimensionValue heightPercentageOffset(float value)
offsetPx(float)
, but the relative offset is based on a percentage of the mount content
heightpublic float resolve(Resolver resolver, PropertyHandle propertyHandle)
RuntimeValue
Resolver
to determine the runtime value based on the given ComponentProperty
.resolve
in interface RuntimeValue