open class ActionButton : Action
(source)
An action button to be added to the toolbar.
imageDrawable
- The drawable to be shown.
contentDescription
- The content description to use.
visible
- Lambda that returns true or false to indicate whether this button should be shown.
padding
- A optional custom padding.
listener
- Callback that will be invoked whenever the button is pressed
ActionButton(imageDrawable: Drawable? = null, contentDescription: String, visible: () -> Boolean = { true }, background: Int = 0, padding: Padding? = null, listener: () -> Unit)
An action button to be added to the toolbar. |
val contentDescription: String
The content description to use. |
|
val imageDrawable: Drawable?
The drawable to be shown. |
|
open val visible: () -> Boolean
Lambda that returns true or false to indicate whether this button should be shown. |
open fun bind(view: View): Unit |
|
open fun createView(parent: ViewGroup): View |
class Button : ActionButton
An action button to be added to the toolbar. |