public final class

ModifiersBuilders.Background.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.ModifiersBuilders.Background.Builder

Overview

Builder for ModifiersBuilders.Background

Summary

Constructors
publicBuilder()

Creates an instance of ModifiersBuilders.Clickable.Builder.

Methods
public ModifiersBuilders.Backgroundbuild()

Builds an instance from accumulated values.

public ModifiersBuilders.Background.BuildersetColor(ColorBuilders.ColorProp color)

Sets the background color for this element.

public ModifiersBuilders.Background.BuildersetCorner(ModifiersBuilders.Corner corner)

Sets the corner properties of this element.

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

Constructors

public Builder()

Creates an instance of ModifiersBuilders.Clickable.Builder.

Methods

Sets the background color for this element. If not defined, defaults to being transparent.

While this field is statically accessible from 1.0, it's only bindable since version 1.2 and renderers supporting version 1.2 will use the dynamic value (if set).

Sets the corner properties of this element. This only affects the drawing of this element if it has a background color or border. If not defined, defaults to having a square corner.

Builds an instance from accumulated values.