InlineSuggestionUi.Style.Builder


class InlineSuggestionUi.Style.Builder


Builder for the Style.

Summary

Public functions

InlineSuggestionUi.Style

Returns a subclass of BundledStyle built by this builder.

InlineSuggestionUi.Style.Builder
setChipStyle(chipStyle: ViewStyle)

Sets the chip style.

InlineSuggestionUi.Style.Builder

Sets the end icon style.

InlineSuggestionUi.Style.Builder
setLayoutDirection(layoutDirection: Int)

Sets the layout direction for the UI.

InlineSuggestionUi.Style.Builder

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

InlineSuggestionUi.Style.Builder

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

InlineSuggestionUi.Style.Builder

Sets the start icon style.

InlineSuggestionUi.Style.Builder

Sets the subtitle style.

InlineSuggestionUi.Style.Builder

Sets the title style.

Public functions

build

Added in 1.1.0
fun build(): InlineSuggestionUi.Style

Returns a subclass of BundledStyle built by this builder.

setChipStyle

Added in 1.1.0
fun setChipStyle(chipStyle: ViewStyle): InlineSuggestionUi.Style.Builder

Sets the chip style.

See setSingleIconChipStyle for more information about setting a special chip style for the case where the entire chip is a single icon.

setEndIconStyle

Added in 1.1.0
fun setEndIconStyle(endIconStyle: ImageViewStyle): InlineSuggestionUi.Style.Builder

Sets the end icon style.

setLayoutDirection

Added in 1.1.0
fun setLayoutDirection(layoutDirection: Int): InlineSuggestionUi.Style.Builder

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: Int

the layout direction to set. Should be one of: LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL.

setSingleIconChipIconStyle

Added in 1.1.0
fun setSingleIconChipIconStyle(iconStyle: ImageViewStyle): InlineSuggestionUi.Style.Builder

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 setStartIconStyle

setSingleIconChipStyle

Added in 1.1.0
fun setSingleIconChipStyle(chipStyle: ViewStyle): InlineSuggestionUi.Style.Builder

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).

setStartIconStyle

Added in 1.1.0
fun setStartIconStyle(startIconStyle: ImageViewStyle): InlineSuggestionUi.Style.Builder

Sets the start icon style.

See setSingleIconChipIconStyle for more information about setting a special icon style for the case where the entire chip is a single icon.

setSubtitleStyle

Added in 1.1.0
fun setSubtitleStyle(subtitleStyle: TextViewStyle): InlineSuggestionUi.Style.Builder

Sets the subtitle style.

setTitleStyle

Added in 1.1.0
fun setTitleStyle(titleStyle: TextViewStyle): InlineSuggestionUi.Style.Builder

Sets the title style.