View.BackgroundTintList 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果指定,則傳回套用至背景可繪製的色調。 -或- 將色調套用至背景可繪製。
public virtual Android.Content.Res.ColorStateList? BackgroundTintList { [Android.Runtime.Register("getBackgroundTintList", "()Landroid/content/res/ColorStateList;", "GetGetBackgroundTintListHandler")] get; [Android.Runtime.Register("setBackgroundTintList", "(Landroid/content/res/ColorStateList;)V", "GetSetBackgroundTintList_Landroid_content_res_ColorStateList_Handler")] set; }
[<get: Android.Runtime.Register("getBackgroundTintList", "()Landroid/content/res/ColorStateList;", "GetGetBackgroundTintListHandler")>]
[<set: Android.Runtime.Register("setBackgroundTintList", "(Landroid/content/res/ColorStateList;)V", "GetSetBackgroundTintList_Landroid_content_res_ColorStateList_Handler")>]
member this.BackgroundTintList : Android.Content.Res.ColorStateList with get, set
屬性值
套用至背景可繪製的色調
- 屬性
備註
屬性 getter 檔:
如果指定,則傳回套用至背景可繪製的色調。
的 android.view.View.getBackgroundTintList()
JAVA 檔。
屬性 setter 檔:
將色調套用至背景可繪製。 不會修改預設的目前色調模式 BlendMode#SRC_IN
。
的後續呼叫 #setBackground(Drawable)
會自動變動可繪製,並使用 套用 Drawable#setTintList(ColorStateList)
指定的色調和色調模式。
的 android.view.View.setBackgroundTintList(android.content.res.ColorStateList)
JAVA 檔。
此頁面的部分是根據所建立和共用的工作進行修改,並根據 2.5 屬性授權中所述的詞彙來使用。