DrawerActionCell.java 文件源码

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

项目:airgram 作者:
public void setTextAndIcon(String text, int resId) {
    try {
        textView.setText(text);
        Drawable d= ContextCompat.getDrawable(getContext(), resId);
        d.setColorFilter(new PorterDuffColorFilter(color, PorterDuff.Mode.SRC_ATOP));
        textView.setCompoundDrawablesWithIntrinsicBounds(d, null, null, null);
    } catch (Throwable e) {
        FileLog.e("tmessages", e);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号