public interface TintableCompoundButton
| android.support.v4.widget.TintableCompoundButton |
| |
接口允许 CompoundButton在API v20设备或更低版本上运行时接收来自 CompoundButtonCompat调色调用。
公共方法(Public methods) |
|
|---|---|
abstract ColorStateList |
getSupportButtonTintList() 返回应用于可绘制按钮的色调 |
abstract PorterDuff.Mode |
getSupportButtonTintMode() 返回用于将色调应用于可绘制按钮的混合模式 |
abstract void |
setSupportButtonTintList(ColorStateList tint) 对可绘制按钮应用色调。 |
abstract void |
setSupportButtonTintMode(PorterDuff.Mode tintMode) 指定应该用于将 |
ColorStateList getSupportButtonTintList ()
返回应用于可绘制按钮的色调
| 返回(Returns) | |
|---|---|
ColorStateList |
|
PorterDuff.Mode getSupportButtonTintMode ()
返回用于将色调应用于可绘制按钮的混合模式
| 返回(Returns) | |
|---|---|
PorterDuff.Mode |
|
void setSupportButtonTintList (ColorStateList tint)
对可绘制按钮应用色调。 不会修改当前着色模式,默认为SRC_IN 。
随后对 setButtonDrawable(Drawable)调用应自动 setButtonDrawable(Drawable) drawable并应用指定的着色和着色模式。
| 参数(Parameters) | |
|---|---|
tint |
ColorStateList: the tint to apply, may be null to clear tint |
void setSupportButtonTintMode (PorterDuff.Mode tintMode)
指定应该用于将setSupportButtonTintList(ColorStateList)指定的色调应用于可绘制按钮的混合模式。 默认模式是SRC_IN 。
| 参数(Parameters) | |
|---|---|
tintMode |
PorterDuff.Mode: the blending mode used to apply the tint, may be null to clear tint |