Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#pubctors) \| [Methods](https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#inhmethods)

# AccessibilityNodeInfo.ExtraRenderingInfo.Builder

*** ** * ** ***

` public static final class AccessibilityNodeInfo.ExtraRenderingInfo.Builder `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.view.accessibility.AccessibilityNodeInfo.ExtraRenderingInfo.Builder |

<br />

*** ** * ** ***

The builder for ExtraRenderingInfo.

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#Builder()() ` Creates a new Builder. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#Builder(android.view.accessibility.AccessibilityNodeInfo.ExtraRenderingInfo)(https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo info) ` Creates a new Builder that is initialized from an `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo`. |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#build()() ` Creates a new `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo` instance. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#clearAlpha()() ` Clears the opacity of the node. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#clearBackgroundColor()() ` Clears the background color of the node. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#clearHintTextColor()() ` Clears the current color selected to paint the hint text. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#clearLayoutSize()() ` Clears the layout width and layout height of the view. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#clearLinkTextColor()() ` Clears the current color selected to paint the link text. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#clearTextColor()() ` Clears the current color selected for primary text. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#clearTextSizeInPx()() ` Clears the text size of the view. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#clearTextSizeUnit()() ` Clears the text size unit of the view. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#setAlpha(float)(float alpha) ` Sets the opacity of the node. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#setBackgroundColor(int)(int color) ` Sets the background color of the node. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#setHintTextColor(int)(int color) ` Sets the current color selected to paint the hint text. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#setLayoutSize(int,%20int)(int width, int height) ` Sets layout width and layout height of the view. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#setLinkTextColor(int)(int color) ` Sets the current color selected to paint the link text. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#setTextColor(int)(int color) ` Sets the current color selected for primary text. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#setTextSizeInPx(float)(float textSizeInPx) ` Sets text size of the view. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder#setTextSizeUnit(int)(int textSizeUnit) ` Sets text size unit of the view. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Public constructors

### Builder

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Builder ()
```

Creates a new Builder.

<br />

### Builder

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Builder (AccessibilityNodeInfo.ExtraRenderingInfo info)
```

Creates a new Builder that is initialized from an `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo`.

<br />

| Parameters ||
|---|---|
| `info` | `AccessibilityNodeInfo.ExtraRenderingInfo`: an instance from which to initialize the builder. This value cannot be `null`. <br /> |

## Public methods

### build

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityNodeInfo.ExtraRenderingInfo build ()
```

Creates a new `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo` instance.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo` | This value cannot be `null`. <br /> |

### clearAlpha

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearAlpha ()
```

Clears the opacity of the node.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | This builder. This value cannot be `null`. <br /> |

### clearBackgroundColor

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearBackgroundColor ()
```

Clears the background color of the node.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | This builder. This value cannot be `null`. <br /> |

### clearHintTextColor

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearHintTextColor ()
```

Clears the current color selected to paint the hint text.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | This builder. This value cannot be `null`. <br /> |

### clearLayoutSize

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearLayoutSize ()
```

Clears the layout width and layout height of the view.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | This builder. This value cannot be `null`. <br /> |

### clearLinkTextColor

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearLinkTextColor ()
```

Clears the current color selected to paint the link text.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | This builder. This value cannot be `null`. <br /> |

### clearTextColor

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearTextColor ()
```

Clears the current color selected for primary text.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | This builder. This value cannot be `null`. <br /> |

### clearTextSizeInPx

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearTextSizeInPx ()
```

Clears the text size of the view.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | This builder. This value cannot be `null`. <br /> |

### clearTextSizeUnit

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder clearTextSizeUnit ()
```

Clears the text size unit of the view.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | This builder. This value cannot be `null`. <br /> |

### setAlpha

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder setAlpha (float alpha)
```

Sets the opacity of the node.

<br />

| Parameters ||
|---|---|
| `alpha` | `float`: The node opacity. Value is between 0.0f and 1.0f inclusive <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | This builder. This value cannot be `null`. <br /> |

### setBackgroundColor

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder setBackgroundColor (int color)
```

Sets the background color of the node.

<br />

| Parameters ||
|---|---|
| `color` | `int`: The background color. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | This builder. This value cannot be `null`. <br /> |

### setHintTextColor

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder setHintTextColor (int color)
```

Sets the current color selected to paint the hint text.

<br />

| Parameters ||
|---|---|
| `color` | `int`: The current hint text color. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | This builder. This value cannot be `null`. <br /> |

### setLayoutSize

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

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

Sets layout width and layout height of the view.

<br />

| Parameters ||
|---|---|
| `width` | `int`: The layout width. <br /> |
| `height` | `int`: The layout height. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | This builder. This value cannot be `null`. <br /> |

### setLinkTextColor

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder setLinkTextColor (int color)
```

Sets the current color selected to paint the link text.

<br />

| Parameters ||
|---|---|
| `color` | `int`: The current link text color. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | This builder. This value cannot be `null`. <br /> |

### setTextColor

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder setTextColor (int color)
```

Sets the current color selected for primary text.

<br />

| Parameters ||
|---|---|
| `color` | `int`: The current text color. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | This builder. This value cannot be `null`. <br /> |

### setTextSizeInPx

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder setTextSizeInPx (float textSizeInPx)
```

Sets text size of the view.

<br />

| Parameters ||
|---|---|
| `textSizeInPx` | `float`: The text size in pixels. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | This builder. This value cannot be `null`. <br /> |

### setTextSizeUnit

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityNodeInfo.ExtraRenderingInfo.Builder setTextSizeUnit (int textSizeUnit)
```

Sets text size unit of the view.

<br />

| Parameters ||
|---|---|
| `textSizeUnit` | `int`: The text size unit. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` | This builder. This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/util/TypedValue#TYPE_DIMENSION`