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

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

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

php - Cloud9 cloud IDE and CakePHP -