DimensionBuilders.DpProp

public final class DimensionBuilders.DpProp implements DimensionBuilders.ContainerDimension, DimensionBuilders.ImageDimension, DimensionBuilders.SpacerDimension


A type for linear dimensions, measured in dp.

Summary

Nested types

DimensionBuilders.DpProp.Builder

Builder for DpProp.

Public methods

static @NonNull DimensionBuilders.DpProp.Builder

Returns a new Builder.

@Dimension(unit = "") @NonNull float

Gets the value, in dp.

Public methods

builder

@NonNull
public static DimensionBuilders.DpProp.Builder builder()

Returns a new Builder.

getValue

@Dimension(unit = "")
@NonNull
public @Dimension(unit = "") float getValue()

Gets the value, in dp. Intended for testing purposes only.