public final class

LayoutElementBuilders.SpanImage.Builder

extends java.lang.Object

implements LayoutElementBuilders.Span.Builder

 java.lang.Object

↳androidx.wear.tiles.LayoutElementBuilders.SpanImage.Builder

Overview

Builder for LayoutElementBuilders.SpanImage.

Summary

Constructors
publicBuilder()

Methods
public LayoutElementBuilders.SpanImagebuild()

public LayoutElementBuilders.SpanImage.BuildersetAlignment(int alignment)

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

public LayoutElementBuilders.SpanImage.BuildersetAlignment(LayoutElementBuilders.SpanVerticalAlignmentProp alignment)

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

public LayoutElementBuilders.SpanImage.BuildersetHeight(DimensionBuilders.DpProp height)

Sets the height of this image.

public LayoutElementBuilders.SpanImage.BuildersetModifiers(ModifiersBuilders.SpanModifiers modifiers)

Sets ModifiersBuilders.Modifiers for this element.

public LayoutElementBuilders.SpanImage.BuildersetResourceId(java.lang.String resourceId)

Sets the resource_id of the image to render.

public LayoutElementBuilders.SpanImage.BuildersetResourceId(TypeBuilders.StringProp resourceId)

Sets the resource_id of the image to render.

public LayoutElementBuilders.SpanImage.BuildersetWidth(DimensionBuilders.DpProp width)

Sets the width of this image.

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

Constructors

public Builder()

Methods

Sets the resource_id of the image to render. This must exist in the supplied resource bundle.

public LayoutElementBuilders.SpanImage.Builder setResourceId(java.lang.String resourceId)

Sets the resource_id of the image to render. This must exist in the supplied resource bundle.

Sets the width of this image. If not defined, the image will not be rendered.

Sets the height of this image. If not defined, the image will not be rendered.

Sets ModifiersBuilders.Modifiers for this element.

Sets alignment of this image within the line height of the surrounding LayoutElementBuilders.Spannable. If undefined, defaults to SPAN_VERTICAL_ALIGN_BOTTOM.

public LayoutElementBuilders.SpanImage.Builder setAlignment(int alignment)

Sets alignment of this image within the line height of the surrounding LayoutElementBuilders.Spannable. If undefined, defaults to SPAN_VERTICAL_ALIGN_BOTTOM.