MobileUI LogoMobileUI
/

Button


A user interface element the user can tap or click to perform an action. Every button is styled using the system's default button background, which is often different from one version of the platform to another. If you are not satisfied with the default button style, you can customize it.

Usage

Button executing the sayHello() method when tapped
<Button text="Say Hello!" onClick="#{sayHello()}" />

Attributes

NameTypeDefaultBindingDescription

Inherits all attributes from TextView and adds the following:

touchEffectColor

colorType

white

Color of the ripple on Android and the touch overlay on iOS.


Parts of this documentation are a derivate of the Android Developer Documentation by Google used under CC-BY-2.5.