added in version 24.1.0
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1

CompoundButtonCompat

public final class CompoundButtonCompat
extends Object

java.lang.Object
   ↳ android.support.v4.widget.CompoundButtonCompat


Helper for accessing CompoundButton.

Summary

Public methods

static Drawable getButtonDrawable(CompoundButton button)

Returns the drawable used as the compound button image

static ColorStateList getButtonTintList(CompoundButton button)

Returns the tint applied to the button drawable

static PorterDuff.Mode getButtonTintMode(CompoundButton button)
static void setButtonTintList(CompoundButton button, ColorStateList tint)

Applies a tint to the button drawable.

static void setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode)

Specifies the blending mode used to apply the tint specified by setButtonTintList(CompoundButton, ColorStateList)} to the button drawable.

Inherited methods

From class java.lang.Object

Public methods

getButtonDrawable

added in version 24.1.0
Drawable getButtonDrawable (CompoundButton button)

Returns the drawable used as the compound button image

Parameters
button CompoundButton

Returns
Drawable

getButtonTintList

added in version 24.1.0
ColorStateList getButtonTintList (CompoundButton button)

Returns the tint applied to the button drawable

Parameters
button CompoundButton

Returns
ColorStateList