How to convert PictureDrawable into ScaleDrawble?
<p>I am trying to scale a picture drwable which I get from <a href="http://code.google.com/p/svg-android/" rel="nofollow">svg-android-library</a>. I can create the drawable but do not get how to scale it.</p>

<p>Here is the code I tried:</p>

<pre><code>Drawable drawable = svg.createPictureDrawable();
    int size = 108;
        Bitmap img = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888);
        Canvas canvas = new Canvas(img);
        //resize drawable here according to screen width
        drawable = new ScaleDrawable(drawable, 0, size*2, size*2).getDrawable();
        drawable.setBounds(0, 0, size*2, size*2);
        drawable.draw(canvas);
</code></pre>

<p>Any suggestions?</p>
