ModifiersBuilders.Padding.Builder
public final class ModifiersBuilders.Padding.Builder
Builder for Padding
Summary
Public methods |
|
|---|---|
@NonNull ModifiersBuilders.Padding |
build()Builds an instance from accumulated values. |
@NonNull ModifiersBuilders.Padding.Builder |
@RequiresSchemaVersion(major = 1, minor = 0)Sets the padding for all sides of the content, in DP. |
@NonNull ModifiersBuilders.Padding.Builder |
@RequiresSchemaVersion(major = 1, minor = 0)Sets the padding at the bottom, in DP. |
@NonNull ModifiersBuilders.Padding.Builder |
@RequiresSchemaVersion(major = 1, minor = 0)Sets the padding on the end of the content, depending on the layout direction, in DP and the value of "rtl_aware". |
@NonNull ModifiersBuilders.Padding.Builder |
@RequiresSchemaVersion(major = 1, minor = 0)Sets whether the start/end padding is aware of RTL support. |
@NonNull ModifiersBuilders.Padding.Builder |
@RequiresSchemaVersion(major = 1, minor = 0)Sets whether the start/end padding is aware of RTL support. |
@NonNull ModifiersBuilders.Padding.Builder |
@RequiresSchemaVersion(major = 1, minor = 0)Sets the padding on the start of the content, depending on the layout direction, in DP and the value of "rtl_aware". |
@NonNull ModifiersBuilders.Padding.Builder |
@RequiresSchemaVersion(major = 1, minor = 0)Sets the padding at the top, in DP. |
Public methods
build
public @NonNull ModifiersBuilders.Padding build()
Builds an instance from accumulated values.
setAll
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull ModifiersBuilders.Padding.Builder setAll(@NonNull DimensionBuilders.DpProp value)
Sets the padding for all sides of the content, in DP.
Note that negative values are supported on schema versions of 1.6 or higher.
Note that this field only supports static values.
setBottom
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull ModifiersBuilders.Padding.Builder setBottom(@NonNull DimensionBuilders.DpProp bottom)
Sets the padding at the bottom, in DP.
Note that negative values are supported on schema versions of 1.6 or higher.
Note that this field only supports static values.
setEnd
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull ModifiersBuilders.Padding.Builder setEnd(@NonNull DimensionBuilders.DpProp end)
Sets the padding on the end of the content, depending on the layout direction, in DP and the value of "rtl_aware".
Note that negative values are supported on schema versions of 1.6 or higher.
Note that this field only supports static values.
setRtlAware
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull ModifiersBuilders.Padding.Builder setRtlAware(boolean rtlAware)
Sets whether the start/end padding is aware of RTL support. If true, the values for start/end will follow the layout direction (i.e. start will refer to the right hand side of the container if the device is using an RTL locale). If false, start/end will always map to left/right, accordingly.
setRtlAware
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull ModifiersBuilders.Padding.Builder setRtlAware(@NonNull TypeBuilders.BoolProp rtlAware)
Sets whether the start/end padding is aware of RTL support. If true, the values for start/end will follow the layout direction (i.e. start will refer to the right hand side of the container if the device is using an RTL locale). If false, start/end will always map to left/right, accordingly.
Note that this field only supports static values.
setStart
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull ModifiersBuilders.Padding.Builder setStart(@NonNull DimensionBuilders.DpProp start)
Sets the padding on the start of the content, depending on the layout direction, in DP and the value of "rtl_aware".
Note that negative values are supported on schema versions of 1.6 or higher.
Note that this field only supports static values.
setTop
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull ModifiersBuilders.Padding.Builder setTop(@NonNull DimensionBuilders.DpProp top)
Sets the padding at the top, in DP.
Note that negative values are supported on schema versions of 1.6 or higher.
Note that this field only supports static values.