public final class

ModifiersBuilders.Padding

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.ModifiersBuilders.Padding

Overview

A modifier to apply padding around an element.

Summary

Methods
public static ModifiersBuilders.PaddingfromProto(ModifiersProto.Padding proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public DimensionBuilders.DpPropgetBottom()

Gets the padding at the bottom, in DP.

public DimensionBuilders.DpPropgetEnd()

Gets the padding on the end of the content, depending on the layout direction, in DP and the value of "rtl_aware".

public FingerprintgetFingerprint()

Get the fingerprint for this object, or null if unknown.

public TypeBuilders.BoolPropgetRtlAware()

Gets whether the start/end padding is aware of RTL support.

public DimensionBuilders.DpPropgetStart()

Gets the padding on the start of the content, depending on the layout direction, in DP and the value of "rtl_aware".

public DimensionBuilders.DpPropgetTop()

Gets the padding at the top, in DP.

public ModifiersProto.PaddingtoProto()

Returns the internal proto instance.

public java.lang.StringtoString()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Methods

public DimensionBuilders.DpProp getEnd()

Gets the padding on the end of the content, depending on the layout direction, in DP and the value of "rtl_aware".

public DimensionBuilders.DpProp getStart()

Gets the padding on the start of the content, depending on the layout direction, in DP and the value of "rtl_aware".

public DimensionBuilders.DpProp getTop()

Gets the padding at the top, in DP.

public DimensionBuilders.DpProp getBottom()

Gets the padding at the bottom, in DP.

public TypeBuilders.BoolProp getRtlAware()

Gets 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.

public Fingerprint getFingerprint()

Get the fingerprint for this object, or null if unknown.

public static ModifiersBuilders.Padding fromProto(ModifiersProto.Padding proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public ModifiersProto.Padding toProto()

Returns the internal proto instance.

public java.lang.String toString()