AppShortcutIconGenerator.java 文件源码

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

项目:Phonograph 作者:
private static IconCompat generateUserThemedIcon(Context context, int iconId) {
    // Get background color from context's theme
    final TypedValue typedColorBackground = new TypedValue();
    context.getTheme().resolveAttribute(android.R.attr.colorBackground, typedColorBackground, true);

    // Return an Icon of iconId with those colors
    return generateThemedIcon(context, iconId,
            ThemeStore.primaryColor(context),
            typedColorBackground.data
    );
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号