LayoutElementBuilders.SpanImage
@RequiresSchemaVersion(major = 1, minor = 0)
public final class LayoutElementBuilders.SpanImage implements LayoutElementBuilders.Span
An image which can be added to a Span.
Summary
Nested types |
|---|
public final class LayoutElementBuilders.SpanImage.BuilderBuilder for |
Public methods |
|
|---|---|
@Nullable LayoutElementBuilders.SpanVerticalAlignmentProp |
Gets alignment of this image within the line height of the surrounding |
@Nullable DimensionBuilders.DpProp |
Gets the height of this image. |
@Nullable ModifiersBuilders.SpanModifiers |
Gets |
@Nullable TypeBuilders.StringProp |
Gets the resource_id of the image to render. |
@Nullable DimensionBuilders.DpProp |
getWidth()Gets the width of this image. |
@NonNull String |
toString() |
Public methods
getAlignment
public @Nullable LayoutElementBuilders.SpanVerticalAlignmentProp getAlignment()
Gets alignment of this image within the line height of the surrounding Spannable. If undefined, defaults to SPAN_VERTICAL_ALIGN_BOTTOM.
getHeight
public @Nullable DimensionBuilders.DpProp getHeight()
Gets the height of this image. If not defined, the image will not be rendered.
getModifiers
public @Nullable ModifiersBuilders.SpanModifiers getModifiers()
Gets androidx.wear.protolayout.ModifiersBuilders.Modifiers for this element.
getResourceId
public @Nullable TypeBuilders.StringProp getResourceId()
Gets the resource_id of the image to render. This must exist in the supplied resource bundle.
getWidth
public @Nullable DimensionBuilders.DpProp getWidth()
Gets the width of this image. If not defined, the image will not be rendered.