CustomView

The CustomView allows programming a view via scripting to run drawing code on locally on the client.

The CustomView API and Schema will be subject to change in future versions.

Examples

A Button with a simple onClick binding.
<CustomView backgroundImage="img/speedometer.svg"
	width="@{size}" height="@{size}" hrefScript="customview.mvel">
	<Param name="handAngle" value="#{angle}" />
	<Param name="title" value="Pressure" />
</CustomView>

Please refer to the RemoteUI Demo on Github for details and implementation:

Children

One Optional Script element containing the MVEL script as text (must come first).

One or more Param elements defining or binding named parameters to the view.

CustomView Attributes

Name Type Default Binding Description

Inherits all attributes from View and adds the following:

hrefScript

URL

References an MVEL script that implements the drawing of the view.

Param Attributes

Name Type Default Binding Description

name

string

The name of the variable

value

expressionType or string

output

The bindable value of the variable


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

results matching ""

    No results matching ""