LayoutElementBuilders.SpanImage

public static final class LayoutElementBuilders.SpanImage
extends Object implements LayoutElementBuilders.Span

java.lang.Object
   ↳ androidx.wear.tiles.LayoutElementBuilders.SpanImage


An image which can be added to a LayoutElementBuilders.Span.

Summary

Nested classes

class LayoutElementBuilders.SpanImage.Builder

Builder for LayoutElementBuilders.SpanImage

Public methods

static LayoutElementBuilders.SpanImage.Builder builder()

Returns a new LayoutElementBuilders.SpanImage.Builder.

LayoutElementBuilders.SpanVerticalAlignmentProp getAlignment()

Gets alignment of this image within the line height of the surrounding LayoutElementBuilders.Spannable.

DimensionBuilders.DpProp getHeight()

Gets the height of this image.

ModifiersBuilders.SpanModifiers getModifiers()

Gets ModifiersBuilders.Modifiers for this element.

TypeBuilders.StringProp getResourceId()

Gets the resource_id of the image to render.

DimensionBuilders.DpProp getWidth()

Gets the width of this image.

Inherited methods

Public methods

getAlignment

public LayoutElementBuilders.SpanVerticalAlignmentProp getAlignment ()

Gets alignment of this image within the line height of the surrounding LayoutElementBuilders.Spannable. If undefined, defaults to SPAN_VERTICAL_ALIGN_BOTTOM. Intended for testing purposes only.

Returns
LayoutElementBuilders.SpanVerticalAlignmentProp

getHeight

public DimensionBuilders.DpProp getHeight ()

Gets the height of this image. If not defined, the image will not be rendered. Intended for testing purposes only.

Returns
DimensionBuilders.DpProp

getModifiers

public ModifiersBuilders.SpanModifiers getModifiers ()

Gets ModifiersBuilders.Modifiers for this element. Intended for testing purposes only.

Returns
ModifiersBuilders.SpanModifiers

getResourceId

public TypeBuilders.StringProp getResourceId ()

Gets the resource_id of the image to render. This must exist in the supplied resource bundle. Intended for testing purposes only.

Returns
TypeBuilders.StringProp

getWidth

public DimensionBuilders.DpProp getWidth ()

Gets the width of this image. If not defined, the image will not be rendered. Intended for testing purposes only.

Returns
DimensionBuilders.DpProp