public class ImageView extends java.lang.Object implements XMLView.ViewFactory
Name | Description | Required | Default |
---|---|---|---|
placeholder | The name of the placeholder image to be displayed while the image is loading. | No | image |
src | The URL to the image to display. | Yes | |
uiid | The UIID to use for the image component's style. | No | ImageView |
<img uiid="MyParagraphView" src="http://example.com/myimage.png" placeholder="myplaceholder" />
Constructor and Description |
---|
ImageView() |
Modifier and Type | Method and Description |
---|---|
com.codename1.ui.Component |
createView(com.codename1.xml.Element el,
XMLView context)
Generates Image view
Creates a view from a model element.
|
public com.codename1.ui.Component createView(com.codename1.xml.Element el, XMLView context)
createView
in interface XMLView.ViewFactory
el
- The XML element from which to create the view.context
- The XMLView context in which the view is created.