public final class

LayoutElementBuilders.Spannable.Builder

extends java.lang.Object

implements LayoutElementBuilders.LayoutElement.Builder

 java.lang.Object

↳androidx.wear.tiles.builders.LayoutElementBuilders.Spannable.Builder

Overview

Builder for LayoutElementBuilders.Spannable.

Summary

Methods
public LayoutElementBuilders.Spannable.BuilderaddSpan(LayoutElementBuilders.Span.Builder spanBuilder)

Adds one item to the LayoutElementBuilders.Span elements that form this LayoutElementBuilders.Spannable.

public LayoutElementBuilders.Spannable.BuilderaddSpan(LayoutElementBuilders.Span span)

Adds one item to the LayoutElementBuilders.Span elements that form this LayoutElementBuilders.Spannable.

public LayoutElementBuilders.Spannablebuild()

public LayoutElementBuilders.Spannable.BuildersetLineSpacing(DimensionBuilders.SpProp.Builder lineSpacingBuilder)

Sets extra spacing to add between each line.

public LayoutElementBuilders.Spannable.BuildersetLineSpacing(DimensionBuilders.SpProp lineSpacing)

Sets extra spacing to add between each line.

public LayoutElementBuilders.Spannable.BuildersetMaxLines(int maxLines)

Sets the maximum number of lines that can be represented by the LayoutElementBuilders.Spannable element.

public LayoutElementBuilders.Spannable.BuildersetModifiers(ModifiersBuilders.Modifiers.Builder modifiersBuilder)

Sets ModifiersBuilders.Modifiers for this element.

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

Sets ModifiersBuilders.Modifiers for this element.

public LayoutElementBuilders.Spannable.BuildersetMultilineAlignment(int multilineAlignment)

Sets alignment of the LayoutElementBuilders.Spannable content within its bounds.

public LayoutElementBuilders.Spannable.BuildersetOverflow(int overflow)

Sets how to handle content which overflows the bound of the LayoutElementBuilders.Spannable element.

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

Methods

Adds one item to the LayoutElementBuilders.Span elements that form this LayoutElementBuilders.Spannable.

Adds one item to the LayoutElementBuilders.Span elements that form this LayoutElementBuilders.Spannable.

Sets ModifiersBuilders.Modifiers for this element.

Sets ModifiersBuilders.Modifiers for this element.

public LayoutElementBuilders.Spannable.Builder setMaxLines(int maxLines)

Sets the maximum number of lines that can be represented by the LayoutElementBuilders.Spannable element. If not defined, the LayoutElementBuilders.Spannable element will be treated as a single-line element.

public LayoutElementBuilders.Spannable.Builder setMultilineAlignment(int multilineAlignment)

Sets alignment of the LayoutElementBuilders.Spannable content within its bounds. Note that a LayoutElementBuilders.Spannable element will size itself to wrap its contents, so this option is meaningless for single-line content (for that, use alignment of the outer container). For multi-line content, however, this will set the alignment of lines relative to the LayoutElementBuilders.Spannable element bounds. If not defined, defaults to TEXT_ALIGN_CENTER.

public LayoutElementBuilders.Spannable.Builder setOverflow(int overflow)

Sets how to handle content which overflows the bound of the LayoutElementBuilders.Spannable element. A LayoutElementBuilders.Spannable element will grow as large as possible inside its parent container (while still respecting max_lines); if it cannot grow large enough to render all of its content, the content which cannot fit inside its container will be truncated. If not defined, defaults to TEXT_OVERFLOW_TRUNCATE.

Sets extra spacing to add between each line. This will apply to all spans regardless of their font size. This is in addition to original line heights. Note that this won't add any additional space before the first line or after the last line. The default value is zero and negative values will decrease the interline spacing.

Sets extra spacing to add between each line. This will apply to all spans regardless of their font size. This is in addition to original line heights. Note that this won't add any additional space before the first line or after the last line. The default value is zero and negative values will decrease the interline spacing.