是否可以将alpha动画器应用于<group>元素,而不是应用于AnimatedVectorDrawable中的整个<vector>元素?如果没有,还有什么替代办法吗?
发布于 2016-05-27 12:47:04
不,<group>元素没有alpha属性。
根据VectorDrawable文档,带有α的VectorDrawable的部分是包含android:alpha的整个<vector>,以及包含android:strokeAlpha和android:fillAlpha的<path>。
因此,如果您只想动画VectorDrawable的一部分的alpha,则应该将相关路径的fillAlpha和/或strokeAlpha动画化。
https://stackoverflow.com/questions/37483432
复制相似问题