public static Drawable getTintedDrawable(Context ctx, @DrawableRes int drawableResId,
@ColorRes int colorResId) {
Resources res = ctx.getResources();
Drawable drawable = ContextCompat.getDrawable(ctx, drawableResId);
int color = res.getColor(colorResId);
drawable.setColorFilter(color, PorterDuff.Mode.SRC_IN);
return drawable;
}
Ui.java 文件源码
java
阅读 40
收藏 0
点赞 0
评论 0
项目:xlight_android_native
作者:
评论列表
文章目录