nUIButtonElement
com.softwareag.mobile.runtime.nui.nUIButtonElement
Use to display a single button that contains a text label.
Usage Notes
The
nUIButtonElement class extends the
nUIElementDisplay class.
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 |
Windows Phone | Button label is aligned centered |
Windows RT Windows 8 | Button label is aligned centered |
Example
This code sample displays a button. Illustrations of how the example code is rendered on various platforms follows the code sample.
view.add(new nUIButtonElement(NUIID_MY_BUTTON, "nUIButtonElement"));
Platform | Platform-Specific Class and Illustration |
Android | android.widget.Button |
iOS 7 | UIButton |
iOS 6 | UIButton |
Windows Phone | Windows system Button class |
Windows RT Windows 8 | Windows.UI.Xaml.Controls.Button |
Other | |