Share via


AccessibilityNodeInfo.ExtraRenderingInfo.LayoutSize Property

Definition

Gets the size object containing the height and the width of android.view.ViewGroup.LayoutParams if the node is a ViewGroup or a TextView, or null otherwise.

public Android.Util.Size? LayoutSize { [Android.Runtime.Register("getLayoutSize", "()Landroid/util/Size;", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getLayoutSize", "()Landroid/util/Size;", "", ApiSince=30)>]
member this.LayoutSize : Android.Util.Size

Property Value

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

Attributes

Remarks

Gets the size object containing the height and the width of android.view.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.

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

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