DeweyButton

The button class for the Dewey control library.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int)

Types

Link copied to clipboard
The button size.
Link copied to clipboard
The button style.
Link copied to clipboard
enum UiMode
The UI mode.

Functions

Link copied to clipboard
Link copied to clipboard
Get the button style.
Link copied to clipboard
Set the button size.
Link copied to clipboard
Set the button style.
Link copied to clipboard
open fun setIcon(@Nullable icon: Drawable)
open fun setIcon(@DrawableRes iconRes: Int)
Set the icon for the button.
Link copied to clipboard
open fun setTextAlignment(textAlignment: Int)
Link copied to clipboard
open fun setUiMode(uiMode: DeweyButton.UiMode)
Set the UI mode for the button.