This Content is from Stack Overflow. Question asked by Lechius
I have been using this method: public void setColorFilter
(int color, PorterDuff.Mode mode) but I have seen that it is deprecated. In the Android documentation I have seen that I can use this instead:
This method was deprecated in API level 29. use setColorFilter(android.graphics.ColorFilter) with an instance of BlendModeColorFilter
I have tried to solve it but I have not achieved to use thes newer methods. I have also seen other posts as duplicated but they were kotlin version and not java version as this one. So, how could I implement it? Thanks for the help.
This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.
This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.