TintableBackgroundView
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 functions |
|
|---|---|
ColorStateList? |
Return the tint applied to the background drawable, if specified. |
PorterDuff.Mode? |
Return the blending mode used to apply the tint to the background drawable, if specified. |
Unit |
Applies a tint to the background drawable. |
Unit |
setSupportBackgroundTintMode(tintMode: PorterDuff.Mode?)Specifies the blending mode used to apply the tint specified by |
Public functions
getSupportBackgroundTintList
fun getSupportBackgroundTintList(): ColorStateList?
Return the tint applied to the background drawable, if specified.
| Returns | |
|---|---|
ColorStateList? |
the tint applied to the background drawable |
getSupportBackgroundTintMode
fun getSupportBackgroundTintMode(): PorterDuff.Mode?
Return the blending mode used to apply the tint to the background drawable, if specified.
| Returns | |
|---|---|
PorterDuff.Mode? |
the blending mode used to apply the tint to the background drawable |
setSupportBackgroundTintList
fun setSupportBackgroundTintList(tint: ColorStateList?): Unit
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 | |
|---|---|
tint: ColorStateList? |
the tint to apply, may be |
| See also | |
|---|---|
getSupportBackgroundTintList |
setSupportBackgroundTintMode
fun setSupportBackgroundTintMode(tintMode: PorterDuff.Mode?): Unit
Specifies the blending mode used to apply the tint specified by setSupportBackgroundTintList} to the background drawable. The default mode is SRC_IN.
| Parameters | |
|---|---|
tintMode: PorterDuff.Mode? |
the blending mode used to apply the tint, may be |
| See also | |
|---|---|
getSupportBackgroundTintMode |