Element is an abstract concept for drawing objects and can be used to display the background of images
and controls.
| 接口 | 说明 |
|---|---|
| Element.OnBoundsChangeListener |
Provides a callback to listen for changes of element bounds.
|
| Element.OnChangeListener |
Provides a callback to listen for element changes.
|
| Element.OnLayoutDirectionChangeListener |
Provides a callback to listen for element layout direction changes.
|
| Element.OnRankChangeListener |
Provides a callback to listen for
Element rank change. |
| ImageAnimationElement.ImageAnimationCallBack |
Animation start and end callback
|
| 类 | 说明 |
|---|---|
| AnimatedStateElement |
Provides an
Element object that can be changed based on the component state. |
| CropElement |
Provides an
Element that crops another Element based on the current rank value. |
| Element |
An abstract class of something that can be drawn.
|
| Element.ConstantState |
An abstract class of
Element used to store constant states and data shared by Elements
instances. |
| ElementContainer |
A container class of
Element that contains multiple Element objects. |
| ElementContainer.ElementState | 已过时。
Please use
ElementContainer.addChildElement, ElementContainer.getChildElement,
ElementContainer.getChildElementCount |
| ElementScatter |
Parses an
Element layout file. |
| ElementWrapper |
ElementWrapper is an abstract class that allows to wrap any Element
Element object. |
| FlexElement |
Represents a
FlexElement object that can flexibly display PixelMap objects. |
| FrameAnimationElement |
Creates frame-by-frame animations using element objects.
|
| ImageAnimationElement |
Creates Image animations using element objects.
|
| InlaidElement |
Inlays an
element with another element based on a specific distance or proportion from the
content bounds. |
| LayerElement |
Provides an element that manages a list of other elements.
|
| PixelMapElement |
Provides an
Element object that wraps a PixelMap object. |
| ShadowElement |
Provides an
Element object that supports shadow drawing. |
| ShapeElement |
Provides an
Element instance with a color gradient, which is usually used for component backgrounds. |
| StateElement |
Provides an
Element object that can be changed based on the component state. |
| VectorElement |
Provides an
Element object that supports vector drawing. |
| 枚举 | 说明 |
|---|---|
| CropElement.Orientation |
Enumerates the cropping directions.
|
| ShapeElement.Orientation |
Indicates the direction of the gradient effect relative to the element object's bounds.
|
| ShapeElement.RadiusType |
Indicates the type of the processed value for the radius.
|
| 异常错误 | 说明 |
|---|---|
| ElementScatterException |
Represents an exception that is thrown if an error occurs when parsing an element.
|