android - How to nullify setColorFilter method? -


hey have image make black when activity starts using code img.setcolorfilter(new porterduffcolorfilter(color.rgb(0, 0, 0), porterduff.mode.src_atop)); want change normal when user clicks on button. idea on how nullify method? thanks

you can remove colorfilter nulling it

setcolorfilter(null); 

specify optional color filter drawable. pass null remove existing color filter.

parameters cf color filter apply, or null remove existing color filter


Comments

Popular posts from this blog

angularjs - Showing an empty as first option in select tag -

qt - Change color of QGraphicsView rubber band -

php - Cloud9 cloud IDE and CakePHP -