I have a class that extends LinearLayout, cannot figure out how to get PorterDuff.Mode to work with this piece of code:
this.getBackground().setColorFilter(Color.parseColor("#a7d2e3"), PorterDuff.Mode.DARKEN);
"PorterDuff cannot be resolved to a variable"
I have imported porterduff and from what I see, PorterDuff is a static class. Any ideas?
source
share