語言

AssistStructure.ViewNode.TextBackgroundColor 屬性

定義

如果 #getText() 非空,則該色為與之相關的主要文字背景色。

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

屬性值

屬性

備註

如果 #getText() 非空,則該色為與之相關的主要文字背景色。 若沒有文字背景色, #TEXT_COLOR_UNDEFINED 則回傳。 請注意,文字中也可能包含樣式範圍,會改變特定文字部分的顏色。

它只在輔助用途時才有意義 AssistStructure ,不適合自動填充。

Java 文件 android.app.assist.AssistStructure.ViewNode.getTextBackgroundColor()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於