語言

CompoundButton.ButtonTintList 屬性

定義

會對按鈕繪製物施加色調。

public virtual Android.Content.Res.ColorStateList? ButtonTintList { [Android.Runtime.Register("getButtonTintList", "()Landroid/content/res/ColorStateList;", "GetGetButtonTintListHandler")] get; [Android.Runtime.Register("setButtonTintList", "(Landroid/content/res/ColorStateList;)V", "GetSetButtonTintList_Landroid_content_res_ColorStateList_Handler")] set; }
[<get: Android.Runtime.Register("getButtonTintList", "()Landroid/content/res/ColorStateList;", "GetGetButtonTintListHandler")>]
[<set: Android.Runtime.Register("setButtonTintList", "(Landroid/content/res/ColorStateList;)V", "GetSetButtonTintList_Landroid_content_res_ColorStateList_Handler")>]
member this.ButtonTintList : Android.Content.Res.ColorStateList with get, set

屬性值

這個色調會加在按鈕繪製裝置上

屬性

備註

財產取得者文件:

Java 文件 android.widget.CompoundButton.getButtonTintList()。

屬性設定文件:

會對按鈕繪製物施加色調。 不會修改目前預設的 PorterDuff.Mode#SRC_IN 貼膜模式。

後續呼叫 會 #setButtonDrawable(Drawable) 自動改變可繪圖物件,並使用 Drawable#setTintList(ColorStateList)。

Java 文件 android.widget.CompoundButton.setButtonTintList(android.content.res.ColorStateList)。

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

適用於

另請參閱