AccessibilityNodeInfo.ExtraRenderingInfo.Builder


public static final class AccessibilityNodeInfo.ExtraRenderingInfo.Builder
extends Object

java.lang.Object
   ↳ android.view.accessibility.AccessibilityNodeInfo.ExtraRenderingInfo.Builder


The builder for ExtraRenderingInfo.

Summary

Public constructors

Builder()

Creates a new Builder.

Builder(AccessibilityNodeInfo.ExtraRenderingInfo info)

Creates a new Builder that is initialized from an ExtraRenderingInfo.

Public methods

AccessibilityNodeInfo.ExtraRenderingInfo build()

Creates a new ExtraRenderingInfo instance.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearAlpha()

Clears the opacity of the node.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearBackgroundColor()

Clears the background color of the node.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearHintTextColor()

Clears the current color selected to paint the hint text.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearLayoutSize()

Clears the layout width and layout height of the view.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearLinkTextColor()

Clears the current color selected to paint the link text.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearTextColor()

Clears the current color selected for primary text.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearTextSizeInPx()

Clears the text size of the view.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearTextSizeUnit()

Clears the text size unit of the view.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder setAlpha(float alpha)

Sets the opacity of the node.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder setBackgroundColor(int color)

Sets the background color of the node.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder setHintTextColor(int color)

Sets the current color selected to paint the hint text.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder setLayoutSize(int width, int height)

Sets layout width and layout height of the view.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder setLinkTextColor(int color)

Sets the current color selected to paint the link text.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder setTextColor(int color)

Sets the current color selected for primary text.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder setTextSizeInPx(float textSizeInPx)

Sets text size of the view.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder setTextSizeUnit(int textSizeUnit)

Sets text size unit of the view.

Inherited methods

Public constructors

Builder

Added in API level 37
public Builder ()

Creates a new Builder.

Builder

Added in API level 37
public Builder (AccessibilityNodeInfo.ExtraRenderingInfo info)

Creates a new Builder that is initialized from an ExtraRenderingInfo.

Parameters
info AccessibilityNodeInfo.ExtraRenderingInfo: an instance from which to initialize the builder.
This value cannot be null.

Public methods

build

Added in API level 37
public AccessibilityNodeInfo.ExtraRenderingInfo build ()

Creates a new ExtraRenderingInfo instance.

Returns
AccessibilityNodeInfo.ExtraRenderingInfo This value cannot be null.

clearAlpha

Added in API level 37
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearAlpha ()

Clears the opacity of the node.

Returns
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

clearBackgroundColor

Added in API level 37
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearBackgroundColor ()

Clears the background color of the node.

Returns
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

clearHintTextColor

Added in API level 37
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearHintTextColor ()

Clears the current color selected to paint the hint text.

Returns
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

clearLayoutSize

Added in API level 37
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearLayoutSize ()

Clears the layout width and layout height of the view.

Returns
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

clearLinkTextColor

Added in API level 37
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearLinkTextColor ()

Clears the current color selected to paint the link text.

Returns
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

clearTextColor

Added in API level 37
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearTextColor ()

Clears the current color selected for primary text.

Returns
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

clearTextSizeInPx

Added in API level 37
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearTextSizeInPx ()

Clears the text size of the view.

Returns
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

clearTextSizeUnit

Added in API level 37
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearTextSizeUnit ()

Clears the text size unit of the view.

Returns
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

setAlpha

Added in API level 37
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder setAlpha (float alpha)

Sets the opacity of the node.

Parameters
alpha float: The node opacity.
Value is between 0.0f and 1.0f inclusive

Returns
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

setBackgroundColor

Added in API level 37
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder setBackgroundColor (int color)

Sets the background color of the node.

Parameters
color int: The background color.

Returns
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

setHintTextColor

Added in API level 37
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder setHintTextColor (int color)

Sets the current color selected to paint the hint text.

Parameters
color int: The current hint text color.

Returns
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

setLayoutSize

Added in API level 37
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder setLayoutSize (int width, 
                int height)

Sets layout width and layout height of the view.

Parameters
width int: The layout width.

height int: The layout height.

Returns
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

setLinkTextColor

Added in API level 37
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder setLinkTextColor (int color)

Sets the current color selected to paint the link text.

Parameters
color int: The current link text color.

Returns
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

setTextColor

Added in API level 37
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder setTextColor (int color)

Sets the current color selected for primary text.

Parameters
color int: The current text color.

Returns
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

setTextSizeInPx

Added in API level 37
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder setTextSizeInPx (float textSizeInPx)

Sets text size of the view.

Parameters
textSizeInPx float: The text size in pixels.

Returns
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

setTextSizeUnit

Added in API level 37
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder setTextSizeUnit (int textSizeUnit)

Sets text size unit of the view.

Parameters
textSizeUnit int: The text size unit.

Returns
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.