Use drawable with ShaderFactory in LayerDrawable
<p>I am having trouble using a Drawable with ShaderFactory in a LayerDrawable. It is showing all black instead of to the two layers (none of which should be all black). It worked when I used a static Shader using drawable.getPaint().setShader(), but not now with ShaderFactory. </p>

<pre><code>ShapeDrawable.ShaderFactory sf = new ShapeDrawable.ShaderFactory() {
    @Override
    public Shader resize(int width, int height) {
        Log.d("shader", width+"x"+height);
        LinearGradient gradient = new LinearGradient(0, 0, width, height, 
            new int[] { 0x33FF0000, 0x00000000, 0x00000000, 0x11000000 }, 
            new float[] { 0.0f, 0.04f, 0.97f, 1.0f }, Shader.TileMode.CLAMP);
        return gradient;
    }
};
ShapeDrawable grad = new ShapeDrawable();
grad.setShaderFactory(sf);
Drawable[] layers = new Drawable[] { anotherDrawable, grad };
Drawable d = new LayerDrawable(layers);
someImageView.setImageDrawable(d);
</code></pre>
