public final class

InlineSuggestionUi.Style.Builder

extends BundledStyle.Builder<InlineSuggestionUi.Style>

 java.lang.Object

androidx.autofill.inline.common.BundledStyle.Builder<InlineSuggestionUi.Style>

↳androidx.autofill.inline.v1.InlineSuggestionUi.Style.Builder

Overview

Builder for the InlineSuggestionUi.Style.

Summary

Fields
from BundledStyle.Builder<T>mBundle
Methods
public abstract BundledStylebuild()

Returns a subclass of BundledStyle built by this builder.

public InlineSuggestionUi.Style.BuildersetChipStyle(ViewStyle chipStyle)

Sets the chip style.

public InlineSuggestionUi.Style.BuildersetEndIconStyle(ImageViewStyle endIconStyle)

Sets the end icon style.

public InlineSuggestionUi.Style.BuildersetLayoutDirection(int layoutDirection)

Sets the layout direction for the UI.

public InlineSuggestionUi.Style.BuildersetSingleIconChipIconStyle(ImageViewStyle iconStyle)

Sets the icon style for the case where there is a single icon and no text in the chip.

public InlineSuggestionUi.Style.BuildersetSingleIconChipStyle(ViewStyle chipStyle)

Sets the chip style for the case where there is a single icon and no text.

public InlineSuggestionUi.Style.BuildersetStartIconStyle(ImageViewStyle startIconStyle)

Sets the start icon style.

public InlineSuggestionUi.Style.BuildersetSubtitleStyle(TextViewStyle subtitleStyle)

Sets the subtitle style.

public InlineSuggestionUi.Style.BuildersetTitleStyle(TextViewStyle titleStyle)

Sets the title style.

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

Methods

public InlineSuggestionUi.Style.Builder setLayoutDirection(int layoutDirection)

Sets the layout direction for the UI.

Note that the process that renders the UI needs to have android:supportsRtl="true" for this to take effect.

Parameters:

layoutDirection: the layout direction to set. Should be one of: View, View.

See also: View

public InlineSuggestionUi.Style.Builder setChipStyle(ViewStyle chipStyle)

Sets the chip style.

See InlineSuggestionUi.Style.Builder.setSingleIconChipStyle(ViewStyle) for more information about setting a special chip style for the case where the entire chip is a single icon.

public InlineSuggestionUi.Style.Builder setTitleStyle(TextViewStyle titleStyle)

Sets the title style.

public InlineSuggestionUi.Style.Builder setSubtitleStyle(TextViewStyle subtitleStyle)

Sets the subtitle style.

public InlineSuggestionUi.Style.Builder setStartIconStyle(ImageViewStyle startIconStyle)

Sets the start icon style.

See InlineSuggestionUi.Style.Builder.setSingleIconChipIconStyle(ImageViewStyle) for more information about setting a special icon style for the case where the entire chip is a single icon.

public InlineSuggestionUi.Style.Builder setEndIconStyle(ImageViewStyle endIconStyle)

Sets the end icon style.

public InlineSuggestionUi.Style.Builder setSingleIconChipStyle(ViewStyle chipStyle)

Sets the chip style for the case where there is a single icon and no text. If not provided, will fallback to use the chip style provided by (ViewStyle).

public InlineSuggestionUi.Style.Builder setSingleIconChipIconStyle(ImageViewStyle iconStyle)

Sets the icon style for the case where there is a single icon and no text in the chip. If not provided, will fallback to use the icon style provided by InlineSuggestionUi.Style.Builder.setStartIconStyle(ImageViewStyle)

public abstract BundledStyle build()

Returns a subclass of BundledStyle built by this builder.