# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Methods | Inherited Methods

# AccessibilityNodeInfo.ExtraRenderingInfo

`public static final class AccessibilityNodeInfo.ExtraRenderingInfo`
`extends Object` ``

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

Class with information of a view useful to evaluate accessibility needs. Developers can refresh the node with the key `AccessibilityNodeInfo.EXTRA_DATA_RENDERING_INFO_KEY` to fetch the text size and unit if it is `TextView` and the height and the width of layout params from `ViewGroup` or `TextView`.

See also:

- `AccessibilityNodeInfo.EXTRA_DATA_RENDERING_INFO_KEY`
- `AccessibilityNodeInfo.refreshWithExtraData(String, Bundle)`

## Summary

### Public methods
`Size` | `getLayoutSize()` Gets the size object containing the height and the width of `ViewGroup.LayoutParams` if the node is a `ViewGroup` or a `TextView`, or null otherwise.
`float` | `getTextSizeInPx()` Gets the text size if the node is a `TextView`, or -1 otherwise.
`int` | `getTextSizeUnit()` Gets the text size unit if the node is a `TextView`, or -1 otherwise.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Public methods

### getLayoutSize

    public Size getLayoutSize ()

Gets the size object containing the height and the width of `ViewGroup.LayoutParams` if the node is a `ViewGroup` or a `TextView`, or null otherwise. Useful for some accessibility services to understand whether the text is scalable and fits the view or not.

Returns
`Size` | a `Size` stores layout height and layout width of the view, or null otherwise. And the size value may be in pixels, `ViewGroup.LayoutParams.MATCH_PARENT`, or `ViewGroup.LayoutParams.WRAP_CONTENT`

### getTextSizeInPx

    public float getTextSizeInPx ()

Gets the text size if the node is a `TextView`, or -1 otherwise. Useful for some accessibility services to understand whether the text is scalable and fits the view or not.

Returns
`float` | the text size of a `TextView`, or -1 otherwise.

### getTextSizeUnit

    public int getTextSizeUnit ()

Gets the text size unit if the node is a `TextView`, or -1 otherwise. Text size returned from `getTextSizeInPx()` in raw pixels may scale by factors and convert from other units. Useful for some accessibility services to understand whether the text is scalable and fits the view or not.

Returns
`int` | the text size unit which type is `TypedValue#TYPE_DIMENSION` of a `TextView`, or -1 otherwise.

See also:

- `TypedValue.TYPE_DIMENSION`

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*