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);
}
}
DrawerActionCell.java 文件源码
java
阅读 32
收藏 0
点赞 0
评论 0
项目:airgram
作者:
评论列表
文章目录