-
public final class ControlButtonStyleStyle for ControlButtonStyle. Use this class together with TransformStyle.controlButtonStyleTransformer to change ControlButtonStyle styles programmatically.
-
-
Field Summary
Fields Modifier and Type Field Description private final Drawableiconprivate final IntegericonTintprivate final Drawablebackgroundprivate final IntegerbackgroundTintprivate final Booleanenabledprivate final FloatbackgroundEnabledAlphaprivate final FloatbackgroundDisabledAlpha
-
Method Summary
Modifier and Type Method Description final DrawablegetIcon()final IntegergetIconTint()final DrawablegetBackground()final IntegergetBackgroundTint()final BooleangetEnabled()final FloatgetBackgroundEnabledAlpha()final FloatgetBackgroundDisabledAlpha()-
-
Constructor Detail
-
ControlButtonStyle
ControlButtonStyle(Drawable icon, Integer iconTint, Drawable background, Integer backgroundTint, Boolean enabled, Float backgroundEnabledAlpha, Float backgroundDisabledAlpha)
- Parameters:
icon- The icon for the button.iconTint- The color of the icon.background- The button background.backgroundTint- The background color.enabled- Whether the view is enabled or not.backgroundEnabledAlpha- Background opacity when the option is enabled.backgroundDisabledAlpha- Background opacity when the option is disabled.
-
-
Method Detail
-
getIconTint
final Integer getIconTint()
-
getBackground
final Drawable getBackground()
-
getBackgroundTint
final Integer getBackgroundTint()
-
getEnabled
final Boolean getEnabled()
-
getBackgroundEnabledAlpha
final Float getBackgroundEnabledAlpha()
-
getBackgroundDisabledAlpha
final Float getBackgroundDisabledAlpha()
-
-
-
-