DimensionBuilders
class DimensionBuilders
Builders for dimensions for layout elements.
Summary
Nested types |
|---|
interface DimensionBuilders.ContainerDimensionInterface defining a dimension that can be applied to a container. |
|
Builder to create |
|
A type for angular dimensions, measured in degrees. |
|
Builder for |
class DimensionBuilders.DpProp : DimensionBuilders.ContainerDimension, DimensionBuilders.ImageDimension, DimensionBuilders.SpacerDimensionA type for linear dimensions, measured in dp. |
class DimensionBuilders.DpProp.Builder : DimensionBuilders.ContainerDimension.Builder, DimensionBuilders.ImageDimension.Builder, DimensionBuilders.SpacerDimension.BuilderBuilder for |
class DimensionBuilders.EmPropA type for font spacing, measured in em. |
|
Builder for |
class DimensionBuilders.ExpandedDimensionProp : DimensionBuilders.ContainerDimension, DimensionBuilders.ImageDimensionA type for a dimension that fills all the space it can (i.e. MATCH_PARENT in Android parlance). |
class DimensionBuilders.ExpandedDimensionProp.Builder : DimensionBuilders.ContainerDimension.Builder, DimensionBuilders.ImageDimension.BuilderBuilder for |
interface DimensionBuilders.ImageDimensionInterface defining a dimension that can be applied to an image. |
interface DimensionBuilders.ImageDimension.BuilderBuilder to create |
|
A type for a dimension that scales itself proportionally to another dimension such that the aspect ratio defined by the given width and height values is preserved. |
class DimensionBuilders.ProportionalDimensionProp.Builder : DimensionBuilders.ImageDimension.BuilderBuilder for |
class DimensionBuilders.SpPropA type for font sizes, measured in sp. |
|
Builder for |
interface DimensionBuilders.SpacerDimensionInterface defining a dimension that can be applied to a spacer. |
|
Builder to create |
|
A type for a dimension that sizes itself to the size of its children (i.e. WRAP_CONTENT in Android parlance). |
|
Builder for |
Public functions |
|
|---|---|
java-static DimensionBuilders.DegreesProp |
Shortcut for building an |
java-static DimensionBuilders.DpProp |
Shortcut for building a |
java-static DimensionBuilders.EmProp |
Shortcut for building a |
java-static DimensionBuilders.EmProp |
Shortcut for building a |
java-static DimensionBuilders.ExpandedDimensionProp |
Shortcut for building an |
java-static DimensionBuilders.SpProp |
Shortcut for building a |
java-static DimensionBuilders.WrappedDimensionProp |
Shortcut for building an |
Public functions
java-static fundegrees(valueDegrees: Float): DimensionBuilders.DegreesProp
Shortcut for building an DegreesProp using a measurement in degrees.
java-static fundp(valueDp: @Dimension(unit = 0) Float): DimensionBuilders.DpProp
Shortcut for building a DpProp using a measurement in DP.
java-static funem(valueEm: Float): DimensionBuilders.EmProp
Shortcut for building a EmProp using a measurement in EM.
java-static funem(valueEm: Int): DimensionBuilders.EmProp
Shortcut for building a EmProp using a measurement in EM.
java-static funexpand(): DimensionBuilders.ExpandedDimensionProp
Shortcut for building an ExpandedDimensionProp that will expand to the size of its parent.
java-static funsp(valueSp: @Dimension(unit = 2) Float): DimensionBuilders.SpProp
Shortcut for building a SpProp using a measurement in SP.
java-static funwrap(): DimensionBuilders.WrappedDimensionProp
Shortcut for building an WrappedDimensionProp that will shrink to the size of its children.