把ImageView设置变灰

使用滤镜

 

设置变暗:

imageView.setColorFilter(Color.GRAY, PorterDuff.Mode.MULTIPLY);

清除:

imageView.clearColorFilter();

  

posted @ 2015-07-25 12:28  Achilles_Snow  阅读(1033)  评论(0编辑  收藏  举报