I am using below code to make an ImageView
greyscale :
ColorMatrix colorMatrix = new ColorMatrix();
colorMatrix.setSaturation(0);
ColorMatrixColorFilter filter = new ColorMatrixColorFilter(colorMatrix);
imageView.setColorFilter(filter);
But I want to make it pure black and pure white, only two colors, not grey color. How can I do this ?