AlternateRecipientAdapter.java 文件源码

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

项目:q-mail 作者:
private void setCryptoStatusView(RecipientTokenHolder holder, @DrawableRes int cryptoStatusRes,
        @AttrRes int cryptoStatusColorAttr) {
    Resources resources = context.getResources();

    Drawable drawable = resources.getDrawable(cryptoStatusRes);
    // noinspection ConstantConditions, we know the resource exists!
    drawable.mutate();

    int cryptoStatusColor = ThemeUtils.getStyledColor(context, cryptoStatusColorAttr);
    drawable.setColorFilter(cryptoStatusColor, Mode.SRC_ATOP);

    holder.itemCryptoStatusIcon.setImageDrawable(drawable);
    holder.itemCryptoStatus.setVisibility(View.VISIBLE);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号