ExtraUtil.java 文件源码

java
阅读 30 收藏 0 点赞 0 评论 0

项目:NanoIconPack 作者:
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;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号