Building Mobile Enterprise Applications : webMethods Mobile Development Help : Defining Resources for the Mobile Project : Using Assets
Using Assets
Configure an Image element to use an Asset
When working with the Outline Editor, you can specify the name for an Asset within the properties section of the Outline Editor for the following elements:
*Image: Image property,
*Tab: Image property,
*Navbutton: Icon property.
The entered value must be the file name of an Asset including the .asset file extension.
Load an Asset at runtime
An Asset can be loaded at runtime using the com.softwareag.mobile.runtime.toolkit.AbstractApplicationController.loadImage(String) method. Make sure to pass the file name including the .asset file extension. This method returns an instance of javax.microedition.lcdui.Image. By loading an asset, the runtime implementation returns the corresponding Asset for the target screen density, so that you do not need to scale the image at runtime. For detailed information, refer to the Mobile Designer documentation.
Copyright © 2007-2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback