基础协议
ElementPainter
- 生命周期与绘制:
init(...)、render(...) - 元信息:
type()、layer()、zIndex() - 行为:
suppressesTooltips()、widgets()
动画协议
AnimatableElement:默认提供.animated(ElementAnimation...)AnimatedElement:可包装任意 element 并叠加动画
内置动画向量:
RotateAnimationScaleAnimationTintAnimationFreeFallAnimation
示例:
ElementPainter spinningIcon = IconElement.builder(iconTex).build()
.animated(new RotateAnimation(35.0f));Last updated on