AccessibilityNodeInfo.ExtraRenderingInfo.TextSizeInPx Property

Definition

Gets the text size if the node is a TextView, or -1 otherwise.

public float TextSizeInPx { [Android.Runtime.Register("getTextSizeInPx", "()F", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getTextSizeInPx", "()F", "", ApiSince=30)>]
member this.TextSizeInPx : single

Property Value

the text size of a TextView, or -1 otherwise.

Attributes

Remarks

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.

Java documentation for android.view.accessibility.AccessibilityNodeInfo.ExtraRenderingInfo.getTextSizeInPx().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to