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 |
|
Inherited methods | |
|---|---|
Public constructors
Builder
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
public AccessibilityNodeInfo.ExtraRenderingInfo build ()
Creates a new ExtraRenderingInfo instance.
| Returns | |
|---|---|
AccessibilityNodeInfo.ExtraRenderingInfo |
This value cannot be null. |
clearAlpha
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearAlpha ()
Clears the opacity of the node.
| Returns | |
|---|---|
AccessibilityNodeInfo.ExtraRenderingInfo.Builder |
This builder.
This value cannot be null. |
clearBackgroundColor
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearBackgroundColor ()
Clears the background color of the node.
| Returns | |
|---|---|
AccessibilityNodeInfo.ExtraRenderingInfo.Builder |
This builder.
This value cannot be null. |
clearHintTextColor
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
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
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
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
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearTextSizeInPx ()
Clears the text size of the view.
| Returns | |
|---|---|
AccessibilityNodeInfo.ExtraRenderingInfo.Builder |
This builder.
This value cannot be null. |
clearTextSizeUnit
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
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
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
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
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
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
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
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
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. |
See also: