nUIButtonElement
com.softwareag.mobile.runtime.nui.nUIButtonElement
Use to display a single button that contains a text label.
Usage Notes
Based on the platform, the
nUIButtonElement object exhibits different behavior and appearance.
The following lists the default horizontal text alignment of the button label based on the platform:
Android | Button label is aligned left |
iOS | Button label is aligned left |
Example
This code sample displays a button. Details on how the example code is rendered on various platforms follow the code sample.
view.add(new nUIButtonElement(NUIID_MY_BUTTON, "nUIButtonElement"));
Platform | Platform-Specific Class and Visual Reference |
Android | android.widget.Button |
iOS | UIButton |