Compartir a través de


AssistStructure.ViewNode.TextBackgroundColor Property

Definition

If #getText() is non-null, this is the main text background color associated with it.

public virtual int TextBackgroundColor { [Android.Runtime.Register("getTextBackgroundColor", "()I", "GetGetTextBackgroundColorHandler", ApiSince=23)] get; }
[<get: Android.Runtime.Register("getTextBackgroundColor", "()I", "GetGetTextBackgroundColorHandler", ApiSince=23)>]
member this.TextBackgroundColor : int

Property Value

Attributes

Remarks

If #getText() is non-null, this is the main text background color associated with it. If there is no text background color, #TEXT_COLOR_UNDEFINED is returned. Note that the text may also contain style spans that modify the color of specific parts of the text.

It's only relevant when the AssistStructure is used for assist purposes, not for autofill purposes.

Java documentation for android.app.assist.AssistStructure.ViewNode.getTextBackgroundColor().

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