因为 XML 不是行为语言,所以多态性出现在属性级别。
Since XML is not a behaviorial language, polymorphism occurs at the attribute level.
你可以设置动画的位置,颜色,形状,大小,旋转和其他属性级别的因素。
You can animate position, color, shape, size, rotation and other elements at the property level.
依赖注入通过附加的标注发生在属性级别。在运行时,属性包含的注入会变成只读的。
Injection of dependencies occurs at the field level, via additional annotations. At runtime, fields that contain injections become read-only.
应用推荐