public final class

ModifiersBuilders.Modifiers.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.ModifiersBuilders.Modifiers.Builder

Overview

Builder for ModifiersBuilders.Modifiers

Summary

Constructors
publicBuilder()

Creates an instance of ModifiersBuilders.Clickable.Builder.

Methods
public ModifiersBuilders.Modifiersbuild()

Builds an instance from accumulated values.

public ModifiersBuilders.Modifiers.BuildersetBackground(ModifiersBuilders.Background background)

Sets the background (with optional corner radius) of the modified element.

public ModifiersBuilders.Modifiers.BuildersetBorder(ModifiersBuilders.Border border)

Sets the border of the modified element.

public ModifiersBuilders.Modifiers.BuildersetClickable(ModifiersBuilders.Clickable clickable)

Sets the clickable property of the modified element.

public ModifiersBuilders.Modifiers.BuildersetContentUpdateAnimation(ModifiersBuilders.AnimatedVisibility contentUpdateAnimation)

Sets the content transition of an element.

public ModifiersBuilders.Modifiers.BuildersetMetadata(ModifiersBuilders.ElementMetadata metadata)

Sets metadata about an element.

public ModifiersBuilders.Modifiers.BuildersetOpacity(TypeBuilders.FloatProp opacity)

Sets the opacity of the element with a value from 0 to 1, where 0 means the element is completely transparent and 1 means the element is completely opaque.

public ModifiersBuilders.Modifiers.BuildersetPadding(ModifiersBuilders.Padding padding)

Sets the padding of the modified element.

public ModifiersBuilders.Modifiers.BuildersetSemantics(ModifiersBuilders.Semantics semantics)

Sets the semantics of the modified element.

public ModifiersBuilders.Modifiers.BuildersetTransformation(ModifiersBuilders.Transformation transformation)

Sets the transformation applied to the element post-layout.

public ModifiersBuilders.Modifiers.BuildersetVisible(TypeBuilders.BoolProp visible)

Sets whether the attached element is visible, or hidden.

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 clickable property of the modified element. It allows its wrapped element to have actions associated with it, which will be executed when the element is tapped.

Sets the semantics of the modified element. This can be used to add metadata to the modified element (eg. screen reader content descriptions).

Sets the padding of the modified element.

Sets the border of the modified element.

Sets the background (with optional corner radius) of the modified element.

Sets metadata about an element. For use by libraries building higher-level components only. This can be used to track component metadata.

public ModifiersBuilders.Modifiers.Builder setContentUpdateAnimation(ModifiersBuilders.AnimatedVisibility contentUpdateAnimation)

Sets the content transition of an element. Any update to the element or its children will trigger this animation for this element and everything underneath it.

Sets whether the attached element is visible, or hidden. If the element is hidden, then it will still consume space in the layout, but will not render any contents, nor will any children render any contents. Defaults to visible.

Note that a hidden element also cannot be clickable (i.e. a ModifiersBuilders.Clickable modifier would be ignored).

This field is bindable and will use the dynamic value (if set).

Sets the transformation applied to the element post-layout.

Sets the opacity of the element with a value from 0 to 1, where 0 means the element is completely transparent and 1 means the element is completely opaque. Dynamic value is supported.

Builds an instance from accumulated values.