TintableBackgroundView
public interface TintableBackgroundView
AppCompatAutoCompleteTextView |
A |
AppCompatButton |
A |
AppCompatCheckBox |
A |
AppCompatCheckedTextView |
A |
AppCompatEditText |
A |
AppCompatImageButton |
A |
AppCompatImageView |
A |
AppCompatMultiAutoCompleteTextView |
A |
AppCompatRadioButton |
A |
AppCompatSpinner |
A |
AppCompatTextView |
A |
AppCompatToggleButton |
A |
EmojiAppCompatButton |
AppCompatButton widget enhanced with emoji capability by using |
EmojiAppCompatEditText |
AppCompatEditText widget enhanced with emoji capability by using |
EmojiAppCompatTextView |
AppCompatTextView widget enhanced with emoji capability by using |
GuidedActionAppCompatEditText |
A custom EditText that satisfies the IME key monitoring requirements of GuidedStepFragment. |
ImageFilterButton |
An AppCompatImageButton that can display, combine and filter images. |
ImageFilterView |
An ImageView that can display, combine and filter images. |
MotionButton |
A MotionButton is an AppCompatButton that can round its edges. |
Interface which allows a android.view.View to receive background tinting calls from ViewCompat when running on API v20 devices or lower.
Summary
Public methods |
|
|---|---|
abstract @Nullable ColorStateList |
Return the tint applied to the background drawable, if specified. |
abstract @Nullable PorterDuff.Mode |
Return the blending mode used to apply the tint to the background drawable, if specified. |
abstract void |
Applies a tint to the background drawable. |
abstract void |
setSupportBackgroundTintMode(@Nullable PorterDuff.Mode tintMode)Specifies the blending mode used to apply the tint specified by |
Public methods
getSupportBackgroundTintList
abstract @Nullable ColorStateList getSupportBackgroundTintList()
Return the tint applied to the background drawable, if specified.
| Returns | |
|---|---|
@Nullable ColorStateList |
the tint applied to the background drawable |
getSupportBackgroundTintMode
abstract @Nullable PorterDuff.Mode getSupportBackgroundTintMode()
Return the blending mode used to apply the tint to the background drawable, if specified.
| Returns | |
|---|---|
@Nullable PorterDuff.Mode |
the blending mode used to apply the tint to the background drawable |
setSupportBackgroundTintList
abstract void setSupportBackgroundTintList(@Nullable ColorStateList tint)
Applies a tint to the background drawable. Does not modify the current tint mode, which is SRC_IN by default.
Subsequent calls to View.setBackground(Drawable) will automatically mutate the drawable and apply the specified tint and tint mode.
| Parameters | |
|---|---|
@Nullable ColorStateList tint |
the tint to apply, may be |
| See also | |
|---|---|
getSupportBackgroundTintList |
setSupportBackgroundTintMode
abstract void setSupportBackgroundTintMode(@Nullable PorterDuff.Mode tintMode)
Specifies the blending mode used to apply the tint specified by setSupportBackgroundTintList} to the background drawable. The default mode is SRC_IN.
| Parameters | |
|---|---|
@Nullable PorterDuff.Mode tintMode |
the blending mode used to apply the tint, may be |
| See also | |
|---|---|
getSupportBackgroundTintMode |