I\'m working on an android application, and I have a drawable that I\'m loading up from a source image. On this image, I\'d like to convert all of the white pixels to a dif
This works with everything with background:
Textview, Button...
TextView text = (TextView) View.findViewById(R.id.MyText); text.setBackgroundResource(Icon); text.getBackground().setColorFilter(getResources().getColor(Color), PorterDuff.Mode.SRC_ATOP);