CompoundButton.ButtonTintList 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
向可绘制的按钮应用淡色。
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
属性值
应用于按钮可绘制的色调
- 属性
注解
属性 getter 文档:
Java文档android.widget.CompoundButton.getButtonTintList()。
属性 setter 文档:
向可绘制的按钮应用淡色。 不修改默认的当前淡色模式 PorterDuff.Mode#SRC_IN 。
后续调用 #setButtonDrawable(Drawable) 将自动改变可绘制结果,并使用指定的色调和淡色模式 Drawable#setTintList(ColorStateList)。
Java文档android.widget.CompoundButton.setButtonTintList(android.content.res.ColorStateList)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。