Udostępnij za pośrednictwem


AccessibilityNodeInfo.ExtraRenderingInfo.TextSizeUnit Property

Definition

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

public int TextSizeUnit { [Android.Runtime.Register("getTextSizeUnit", "()I", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getTextSizeUnit", "()I", "", ApiSince=30)>]
member this.TextSizeUnit : int

Property Value

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

Attributes

Remarks

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.

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

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