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.