Howto Resize an android ShapeDrawable Directly Via Code without creating another
<pre><code> I am able to resize a drawn ShapeDrawable but it Creates another shape with the       following code how can I just resize the original ShapeDrawable 
</code></pre>

<p>I am Writing a drawing app and have been stuck on this for a couple of days
any help would be greatly appreciated
 even a small nudge in the right direction please.</p>

<pre><code>     public void Resize(Context context){     
        setFocusable(true);
        setFocusableInTouchMode(true);
        this.setOnTouchListener(this);  
        //this.setOnClickListener(this.mDrawablecircle); 

        int x =Integer.parseInt("0"); 
        int y =Integer.parseInt("0");
        int cirw =Integer.parseInt("20"); 
        int cirh =Integer.parseInt("20"); 
        mDrawablecircle.getPaint().setStyle(Style.valueOf(Shapestoollistactivity.mf));
        mDrawablecircle.getPaint().setColor(ColorPickerActivity.thecolor);
        mDrawablecircle.getCurrent().setBounds(x, y, x + cirw, y + cirh);
        mDrawablecircle.draw(mCanvas);}
</code></pre>

<p>// Update this is what I ended up doing still not 100%
    // but somewhat working may help someone else</p>

<pre><code>    public void Resize(int newWidth){     
    setFocusable(true);
    setFocusableInTouchMode(true);
    this.setOnTouchListener(this);  
    int x = (int) mPosX; 
    int y = (int) mPosY;
    width = mDrawablecircle.getBounds().width();  

    height = mDrawablecircle.getBounds().height();  
    float scaleWidth = ((float) newWidth) / width;  
    float ratio = ((float) mDrawablecircle.getBounds().width()) / newWidth;  
    int newHeight = (int) (height / ratio);  
    float scaleHeight = ((float) newHeight) / height;  
    matrix.setTranslate(mPosX+40,mPosY+40);
    matrix.postScale(scaleWidth, scaleHeight);  
    postInvalidate();}   


  // and in In onDraw  
  // I Changed this:       mCanvas.drawBitmap(mBitmap,0,0, mPaint);
        //  to:       mCanvas.drawBitmap(mBitmap,matrix, mPaint);

hope this helps some one else Im sure there is a better solution 
but I cant seem to  find a better one as of yet feel free to chime in and 
correct me Please this at least will do the resize of a shape drawable without
creating a new one but it resizes the whole canvas  NOT WHAT I WAS AFTER
I would like  to be able to resize individuale shapedrawables
Which are created from java code not xml or from a resource.             
</code></pre>
