android基础学习一:ImageView修改颜色灰度

ColorMatrix matrix = new ColorMatrix();
matrix.setSaturation(0);
ColorMatrixColorFilter filter = new ColorMatrixColorFilter(matrix);
viewHolder.icon.setColorFilter(filter);
posted @ 2015-10-28 10:49  fightzhao  阅读(1382)  评论(0编辑  收藏  举报