public final class

EdgeContentLayout.Builder

extends java.lang.Object

implements LayoutElementBuilders.LayoutElement.Builder

 java.lang.Object

↳androidx.wear.tiles.material.layouts.EdgeContentLayout.Builder

Overview

Builder class for EdgeContentLayout.

Summary

Constructors
publicBuilder(DeviceParametersBuilders.DeviceParameters deviceParameters)

Creates a builder for the EdgeContentLayoutt.

Methods
public EdgeContentLayoutbuild()

Constructs and returns EdgeContentLayout with the provided content and look.

public EdgeContentLayout.BuildersetContent(LayoutElementBuilders.LayoutElement content)

Sets the additional content to this layout, inside of the screen.

public EdgeContentLayout.BuildersetEdgeContent(LayoutElementBuilders.LayoutElement edgeContent)

Sets the content to be around the edges.

public EdgeContentLayout.BuildersetPrimaryLabelTextContent(LayoutElementBuilders.LayoutElement primaryLabelText)

Sets the content in the primary label slot which will be above the main content.

public EdgeContentLayout.BuildersetSecondaryLabelTextContent(LayoutElementBuilders.LayoutElement secondaryLabelText)

Sets the content in the secondary label slot which will be below the main content.

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

Constructors

public Builder(DeviceParametersBuilders.DeviceParameters deviceParameters)

Creates a builder for the EdgeContentLayoutt. Custom content inside of it can later be set with (EdgeContentLayout.Builder.setContent(LayoutElementBuilders.LayoutElement).

Methods

Sets the content to be around the edges. This can be .

public EdgeContentLayout.Builder setPrimaryLabelTextContent(LayoutElementBuilders.LayoutElement primaryLabelText)

Sets the content in the primary label slot which will be above the main content.

public EdgeContentLayout.Builder setSecondaryLabelTextContent(LayoutElementBuilders.LayoutElement secondaryLabelText)

Sets the content in the secondary label slot which will be below the main content. It is highly recommended to have primary label set when having secondary label.

Sets the additional content to this layout, inside of the screen.

public EdgeContentLayout build()

Constructs and returns EdgeContentLayout with the provided content and look.