public final class

LayoutElementBuilders.SpanImage

extends java.lang.Object

implements LayoutElementBuilders.Span

 java.lang.Object

↳androidx.wear.tiles.LayoutElementBuilders.SpanImage

Overview

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

Summary

Methods
public static LayoutElementBuilders.SpanImagefromProto(LayoutElementProto.SpanImage proto)

public LayoutElementBuilders.SpanVerticalAlignmentPropgetAlignment()

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

public DimensionBuilders.DpPropgetHeight()

Gets the height of this image.

public ModifiersBuilders.SpanModifiersgetModifiers()

Gets ModifiersBuilders.Modifiers for this element.

public TypeBuilders.StringPropgetResourceId()

Gets the resource_id of the image to render.

public DimensionBuilders.DpPropgetWidth()

Gets the width of this image.

public LayoutElementProto.SpantoSpanProto()

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

Methods

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.

public DimensionBuilders.DpProp getWidth()

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

public DimensionBuilders.DpProp getHeight()

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

public ModifiersBuilders.SpanModifiers getModifiers()

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

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.

public static LayoutElementBuilders.SpanImage fromProto(LayoutElementProto.SpanImage proto)

public LayoutElementProto.Span toSpanProto()