/**
* Inflates an instance of MotionSpec from the animator resource indexed in the given attributes
* array.
*/
@Nullable
public static MotionSpec createFromAttribute(
Context context, TypedArray attributes, @StyleableRes int index) {
if (attributes.hasValue(index)) {
int resourceId = attributes.getResourceId(index, 0);
if (resourceId != 0) {
return createFromResource(context, resourceId);
}
}
return null;
}
MotionSpec.java 文件源码
java
阅读 37
收藏 0
点赞 0
评论 0
项目:material-components-android
作者:
评论列表
文章目录