public final class

LayoutElementBuilders.Image.Builder

extends java.lang.Object

implements LayoutElementBuilders.LayoutElement.Builder

 java.lang.Object

↳androidx.wear.tiles.LayoutElementBuilders.Image.Builder

Overview

Builder for LayoutElementBuilders.Image.

Summary

Constructors
publicBuilder()

Methods
public LayoutElementBuilders.Imagebuild()

public LayoutElementBuilders.Image.BuildersetColorFilter(LayoutElementBuilders.ColorFilter filter)

Sets filtering parameters for this image.

public LayoutElementBuilders.Image.BuildersetContentScaleMode(int contentScaleMode)

Sets how to scale the image resource inside the bounds specified by width/height if its size does not match those bounds.

public LayoutElementBuilders.Image.BuildersetContentScaleMode(LayoutElementBuilders.ContentScaleModeProp contentScaleMode)

Sets how to scale the image resource inside the bounds specified by width/height if its size does not match those bounds.

public LayoutElementBuilders.Image.BuildersetHeight(DimensionBuilders.ImageDimension height)

Sets the height of this image.

public LayoutElementBuilders.Image.BuildersetModifiers(ModifiersBuilders.Modifiers modifiers)

Sets ModifiersBuilders.Modifiers for this element.

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

Sets the resource_id of the image to render.

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

Sets the resource_id of the image to render.

public LayoutElementBuilders.Image.BuildersetWidth(DimensionBuilders.ImageDimension 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.Image.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 how to scale the image resource inside the bounds specified by width/height if its size does not match those bounds. Defaults to CONTENT_SCALE_MODE_FIT.

public LayoutElementBuilders.Image.Builder setContentScaleMode(int contentScaleMode)

Sets how to scale the image resource inside the bounds specified by width/height if its size does not match those bounds. Defaults to CONTENT_SCALE_MODE_FIT.

Sets ModifiersBuilders.Modifiers for this element.

Sets filtering parameters for this image. If not specified, defaults to no filtering.