LayoutElementBuilders.SpanImage.Builder
public final class LayoutElementBuilders.SpanImage.Builder implements LayoutElementBuilders.Span.Builder
Builder for SpanImage.
Summary
Public constructors |
|---|
|
Public methods
build
public @NonNull LayoutElementBuilders.SpanImagebuild()
Builds an instance with values accumulated in this Builder.
public @NonNull LayoutElementBuilders.SpanImage.BuildersetAlignment(int alignment)
Sets alignment of this image within the line height of the surrounding Spannable. If undefined, defaults to SPAN_VERTICAL_ALIGN_BOTTOM.
public @NonNull LayoutElementBuilders.SpanImage.BuildersetAlignment(
@NonNull LayoutElementBuilders.SpanVerticalAlignmentProp alignment
)
Sets alignment of this image within the line height of the surrounding Spannable. If undefined, defaults to SPAN_VERTICAL_ALIGN_BOTTOM.
public @NonNull LayoutElementBuilders.SpanImage.BuildersetHeight(@NonNull DimensionBuilders.DpProp height)
Sets the height of this image. If not defined, the image will not be rendered.
public @NonNull LayoutElementBuilders.SpanImage.BuildersetModifiers(@NonNull ModifiersBuilders.SpanModifiers modifiers)
Sets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element.
public @NonNull LayoutElementBuilders.SpanImage.BuildersetResourceId(@NonNull String resourceId)
Sets the resource_id of the image to render. This must exist in the supplied resource bundle.
public @NonNull LayoutElementBuilders.SpanImage.BuildersetResourceId(@NonNull TypeBuilders.StringProp resourceId)
Sets the resource_id of the image to render. This must exist in the supplied resource bundle.
public @NonNull LayoutElementBuilders.SpanImage.BuildersetWidth(@NonNull DimensionBuilders.DpProp width)
Sets the width of this image. If not defined, the image will not be rendered.