public static int fetchColor(@NonNull Context context, int attrId) {
TypedValue typedValue = new TypedValue();
TypedArray a = context.obtainStyledAttributes(typedValue.data,
new int[] { attrId });
int color = a.getColor(0, 0);
a.recycle();
return color;
}
ExtraUtil.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:NanoIconPack
作者:
评论列表
文章目录