Tag list
Tag | Supported Common Attributes | Unsupported Common Attributes |
|---|---|---|
Arc | x,y,width,height,pivotX,pivotY,rotation,rotationX,rotationY,visibility,align,alignV,enableMove,moveRect,active,category | name,alpha |
Circle | x,y,width,height,pivotX,pivotY,rotation,rotationX,rotationY,visibility,align,alignV,enableMove,moveRect,active,category | name,alpha |
DateTime | x,y,pivotX,pivotY,name,rotation,rotationX,rotationY,visibility,align,alignV,active,category | alpha,width,height,enableMove,moveRect |
Ellipse | x,y,width,height,pivotX,pivotY,rotation,rotationX,rotationY,visibility,align,alignV,enableMove,moveRect,active,category | name,alpha |
Image | x,y,width,height,pivotX,pivotY,rotation,rotationX,rotationY,visibility,align,alignV,enableMove,moveRect,active,category,name | alpha |
ImageNumber | x,y,pivotX,pivotY,rotation,alpha,visibility,align,alignV,enableMove,moveRect,active,category,name | width,height,rotationX,rotationY |
ImageSeries | x,y,pivotX,pivotY,rotation,alpha,visibility,align,alignV,enableMove,moveRect,active,category,name | width,height,rotationX,rotationY |
Line | x,y,pivotX,pivotY,rotation,rotationX,rotationY,visibility,align,alignV,enableMove,moveRect,active,category | name,alpha,width,height |
Rectangle | x,y,width,height,pivotX,pivotY,rotation,rotationX,rotationY,visibility,align,alignV,enableMove,moveRect,active,category | name,alpha |
SourceImage | x,y,width,height,name,pivotX,pivotY,rotation,rotationX,rotationY,alpha,visibility,align,alignV,enableMove,moveRect,active | category |
Text | x,y,name,pivotX,pivotY,rotation,rotationX,rotationY,visibility,align,alignV,enableMove,moveRect,active,alpha,category | width,height |
Time | x,y,name,pivotX,pivotY,rotation,rotationX,rotationY,alpha,visibility,align,alignV,enableMove,moveRect,active,category | width,height |
Common attributes are shared by view components. Default settings are provided for them. If a view component uses an attribute that is named after a common attribute, the function description of the view component attribute is followed. The following table lists the common attributes.
Parameter | Type | Mandatory | Description |
|---|---|---|---|
name | String | No | Element name. In expressions, @name can be used to obtain the value of this parameter. |
x | Number | No | X coordinate relative to the upper left corner of the screen, in pixels. The value range depends on the screen width (for a screen with a resolution of 1920 x 1080 pixels, the value ranges from 0 to 1080). The default value is 0 and expressions are supported. |
y | Number | No | Y coordinate relative to the upper left corner of the screen, in pixels. The value range depends on the screen height (for a screen with a resolution of 1920 x 1080 pixels, the value ranges from 0 to 1920). The default value is 0 and expressions are supported. |
width | Number | No | Display width, in pixels. The value range depends on the screen width (for a screen with a resolution of 1920 x 1080 pixels, the value ranges from 0 to 1080). Expressions are supported. This parameter can also be named w. |
height | Number | No | Display height, in pixels. The value range depends on the screen height (for a screen with a resolution of 1920 x 1080 pixels, the value ranges from 0 to 1920). Expressions are supported. This parameter can also be named h. |
pivotX | Number | No | X coordinate of the rotation point, relative to the upper left corner of the view, in pixels. Expressions are supported. This parameter can also be named centerX. |
pivotY | Number | No | Y coordinate of the rotation point, relative to the upper left corner of the view, in pixels. Expressions are supported. This parameter can also be named centerY. |
rotation | Number | No | Angle of rotation around (pivotX,pivotY). A 360-degree angle is a full circle. If pivotX and pivotY are not specified, rotation is conducted around (0,0) by default. Expressions are supported. A positive value indicates clockwise rotation, and a negative value indicates counterclockwise rotation. This parameter can also be named angle. |
rotationX | Number | No | Angle of rotation around the X axis. A 360-degree angle is a full circle. Expressions are supported. A positive value indicates clockwise rotation, and a negative value indicates counterclockwise rotation. This parameter can also be named angleX. |
rotationY | Number | No | Angle of rotation around the Y axis. A 360-degree angle is a full circle. Expressions are supported. A positive value indicates clockwise rotation, and a negative value indicates counterclockwise rotation. This parameter can also be named angleY. |
alpha | Number | No | Transparency. The value ranges from 0 to 255. The default value is 255. If the specified value is less than 0, the value 0 is used. If the specified value is greater than 255, the value 255 is used. Expressions are supported. |
visibility | Number | No | Element visibility. Expressions are supported. If this parameter is set to a positive value or true, the element is visible. If this parameter is set to a negative value, 0, or false, the element is invisible. The default value is 1. |
category | String | No | The value can be Normal, Charging, BatteryLow, or BatteryFull, indicating that this element is displayed when the phone is in the specified charging state. |
align | String | No | Horizontal alignment mode of a coordinate point. The options are left, center, and right, which respectively indicate the left, center, and right relative to the X coordinate of the upper left corner of the view. |
alignV | String | No | Vertical alignment mode of a coordinate point. The options are top, center, and bottom, which respectively indicate the top, center, and bottom relative to the Y coordinate of the upper left corner of the view. |
enableMove | String | No | Indicates whether an element can be moved. The value false or 0 indicates that the element cannot be moved. The value true or a non-zero value indicates that the element can be moved. The default value is 0. |
moveRect | String | No | Moving area. This parameter is valid only when enableMove is set to true or a non-zero value. The format is moveRect="minH,minV,maxH,maxV", where the variables respectively indicate the minimum horizontal movement distance, minimum vertical movement distance, maximum horizontal movement distance, and maximum vertical movement distance, in pixels. The four variables are of the number type and do not support expressions. For example, if the original coordinates of an element are (x,y), the element can be moved horizontally in the range from (x + minH) to (x + maxH), and vertically in the range from (y + minV) to (y + maxV). |
active | Number | No | Activation status. The value 0 indicates that the view is inactive and not displayed. In this case, all animations and visibility settings are invalid. The default value is 1. |