Hi I have several state-full custom buttons, each composed of three parts (image views): back, middle, front. On state change color filter (tint) is applied / removed to the middle and front part. On focus change color filter is applied / removed to the back part of the button (the image on the bottom).
Randomly, after several filters are applied (due to state change) the filters will start to be rendered incorrectly. E.g. On next focus change all the buttons would be marked as they have changed state. The color filter will not be removed when the button lose focus. Sometimes only portions of the button is tinted (although it should not be affected). Sometimes the transparent parts of the image are affected, although I use SRC_ATOP mode. To apply color filter I use: myImageView.setColorFilter(myColor, Mode.SRC_ATOP); To remove color filter I have tried: myImageView.setcolorFilter(null); OR myImageView.setColorFilter (Color.TRANSPARENT, Mode.SRC_ATOP); Please note that everything works fine until several color filters are applied, after that tinting errors appear randomly; Am I missing something (e.g calling some method to force view to redraw) since I could not find anyone having similar problems ? regards --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---