CompoundButtonCompat

Helper for accessing CompoundButton.

Functions

Link copied to clipboard
@Nullable
open fun getButtonDrawable(@NonNull button: @NonNull CompoundButton): @Nullable Drawable
Returns the drawable used as the compound button image
Link copied to clipboard
@Nullable
open fun getButtonTintList(@NonNull button: @NonNull CompoundButton): @Nullable ColorStateList
Returns the tint applied to the button drawable
Link copied to clipboard
open fun getButtonTintMode(@NonNull button: @NonNull CompoundButton): @Nullable PorterDuff.Mode
Link copied to clipboard
open fun setButtonTintList(@NonNull button: @NonNull CompoundButton, @Nullable tint: @Nullable ColorStateList)
Applies a tint to the button drawable.
Link copied to clipboard
open fun setButtonTintMode(@NonNull button: @NonNull CompoundButton, tintMode: @Nullable PorterDuff.Mode)
Specifies the blending mode used to apply the tint specified by setButtonTintList} to the button drawable.