Android PorterDuff.Mode error: PorterDuff cannot be resolved to a variable
<p>I've got a class which extends LinearLayout, can't figure out how to get PorterDuff.Mode working with this piece of code:</p>

<pre><code>this.getBackground().setColorFilter(Color.parseColor("#a7d2e3"), PorterDuff.Mode.DARKEN);
</code></pre>

<p>"PorterDuff cannot be resolved to a variable"</p>

<p>I've imported porterduff and from what I can see PorterDuff is a static class. Any ideas?</p>
